Share via


PodAffinityTermV1.TopologyKey Property

Definition

Specifies the key for the node's topology on which matching should occur. The value of this property is used to categorize nodes in a cluster based on specific characteristics, such as region or zone. This is commonly used in Kubernetes for pod affinity and anti-affinity rules to determine how pods are scheduled across nodes.

[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

The expected value must correspond to a label on the node that denotes the desired topology classification. It enables controlled distribution of pods across the nodes based on their topology attributes, ensuring improved resource utilization and failure isolation.

Applies to