Placement Properties
Class Properties 2 members
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.
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.
public List<string>? Constraints { get; set; } Gets or sets the preferences for the placement strategy in the Swarm service nodes.
public List<Dictionary<string, string>>? Preferences { get; set; }Remarks
The preferences configuration is represented as a list of dictionaries, where each dictionary specifies key-value pairs that define custom placement preferences for the service.