Share via


TopologySpreadConstraintV1.MaxSkew Property

Definition

Represents the maximum allowed skew for a topology spread constraint in Kubernetes. Skew is defined as the difference in the number of matching pods between the target and the other domains defined by the topologyKey.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

This property is used to control the dispersion of pods across domains, ensuring that they are evenly balanced based on the specified topologyKey. A lower value enforces stricter balancing, while a higher value allows more skew in the pod distribution.

Applies to