Cloud API Overview > @adpt/cloud > k8s > TopologySpreadConstraint > topologyKey
k8s.TopologySpreadConstraint.topologyKey property
The key of node labels.
Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. It's a required field.
Signature:
topologyKey: string;