TopologySpreadConstraintV1.TopologyKey Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, setPublic Property TopologyKey As StringProperty 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.