Deploy
Class sealed net10.0
Represents the deployment configuration for a Docker service. This class is used to define various aspects such as replication, mode, resource constraints, updates, and restart policies.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm;
public sealed class Deploy{ // ...} 8 members
Constructors1
Section titled ConstructorsProperties7
Section titled PropertiesLabelsget; set Represents the label configurations for a deployable service in Docker.
Modeget; setstring? Gets or sets the deployment mode for the service. Specifies how tasks are scheduled on nodes. Common values include "replicated" for distributing tasks across nodes or "global" for running a task on every node in the cluster.
Placementget; set Specifies the placement constraints and preferences for service deployment.
Replicasget; setint? Represents the number of task replicas for a service node deployment. The replicas define the desired count of independently running instances of the service within the deployment.
Resourcesget; set Represents the resource configurations for a deployable service within Docker.
RestartPolicyget; set Specifies the restart policy for a Docker service.
UpdateConfigget; set Represents the update configuration used during service deployments.