Placement
Class sealed net10.0
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.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm;
public sealed class Placement{ // ...}Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesConstraintsget; setList<string> 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.
Preferencesget; setList<Dictionary<string, string>> Gets or sets the preferences for the placement strategy in the Swarm service nodes.