Share via


TopologySpreadConstraintV1.TopologyKey Property

Definition

Represents the key used to indicate the topology ___domain of a Kubernetes resource. The TopologyKey defines the scope for spreading or balancing resources across nodes based on the specified topology rule. It is typically matched to a node label, such as failure-___domain.beta.kubernetes.io/zone or kubernetes.io/hostname, to align resources with the desired ___domain or affinity policy.

[YamlDotNet.Serialization.YamlMember(Alias="topologyKey")]
public string? TopologyKey { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="topologyKey")>]
member this.TopologyKey : string with get, set
Public Property TopologyKey As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

This property is used in conjunction with topology constraints to evenly distribute resources across the specified topology domains or to avoid overloading a single topology ___domain. The specified TopologyKey must correspond to a valid label key present on the cluster nodes.

Applies to