Placement 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 placement configuration for a Docker service in a Swarm cluster. This class is used to define specific constraints and preferences for the placement of tasks or containers.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class Placement
[<YamlDotNet.Serialization.YamlSerializable>]
type Placement = class
Public NotInheritable Class Placement
- Inheritance
-
Placement
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Constructors
Placement() |
Properties
Constraints |
A collection of constraints that define where tasks can be scheduled within a Swarm cluster. These constraints act as filters, ensuring that tasks are only placed on nodes that match all the specified conditions. |
Preferences |
Gets or sets the preferences for the placement strategy in the Swarm service nodes. |