Share via


TopologySpreadConstraintV1.MinDomains Property

Definition

Specifies the minimum number of topology domains that must have at least one replica present for resource scheduling. This is used to ensure that replicas are distributed across a certain number of domains to achieve a balanced topology spread for better availability and fault tolerance.

[YamlDotNet.Serialization.YamlMember(Alias="minDomains")]
public int? MinDomains { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="minDomains")>]
member this.MinDomains : Nullable<int> with get, set
Public Property MinDomains As Nullable(Of Integer)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The value of this property helps enforce the desired distribution of replicas across different topology domains. For example, the topology domains could represent zones, regions, or any other logical grouping defined by the cluster. If this property is not set, the behavior may default to the Kubernetes scheduler's default logic for topology constraints.

Applies to