Placement.Constraints Property
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.
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.
[YamlDotNet.Serialization.YamlMember(Alias="constraints")]
public System.Collections.Generic.List<string>? Constraints { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="constraints")>]
member this.Constraints : System.Collections.Generic.List<string> with get, set
Public Property Constraints As List(Of String)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute