Deploy.Placement Property

Definition

Specifies the placement constraints and preferences for service deployment.

[YamlDotNet.Serialization.YamlMember(Alias="placement")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.Placement? Placement { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="placement")>]
member this.Placement : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.Placement with get, set
Public Property Placement As Placement

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Placement property defines the rules for how the service should be placed on nodes within a Docker Swarm. This includes constraints that must be satisfied and preferences to guide the scheduler.

Applies to