Deploy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class Deploy
[<YamlDotNet.Serialization.YamlSerializable>]
type Deploy = class
Public NotInheritable Class Deploy
- Inheritance
-
Deploy
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Constructors
Deploy() |
Properties
Labels |
Represents the label configurations for a deployable service in Docker. |
Mode |
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. |
Placement |
Specifies the placement constraints and preferences for service deployment. |
Replicas |
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. |
Resources |
Represents the resource configurations for a deployable service within Docker. |
RestartPolicy |
Specifies the restart policy for a Docker service. |
UpdateConfig |
Represents the update configuration used during service deployments. |