liveBook · Manning

Topology key

A topology key is a Kubernetes node-label key whose values define the topology domains used to constrain or spread workload placement.

How 2 Manning books explain it

Google Anthos in Action

A topology key is a Kubernetes pod-affinity field that identifies the node-label domain, such as a hostname or zone, used for comparing placement.

How it is used
Defines the node-label domain for comparing placement under Pod affinity and anti-affinity rules.
How deep it goes
Explains the field through required hostname affinity and preferred zone anti-affinity, without detailing scheduler internals.
Examples
Uses a per-node software license and manifests with hostname and zone topology keys.
What you can do after
Operate/configure it to group matching Pods on one node or prefer separation across zones.

Read how Google Anthos in Action explains topology key →

Kubernetes for Developers

A topology key is a node-label key whose values define the topology domains considered equivalent for spreading workloads.

How it is used
Defines equivalent topology domains for spreading workload Pods across nodes.
How deep it goes
Explains node-level placement, label verification, imbalance limits, and unsatisfied-constraint behavior.
Examples
Uses kubernetes.io/hostname in a three-replica timeserver Deployment and verifies placement with kubectl.
What you can do after
Configure node-level workload spreading and verify the required node labels before deployment.

Read how Kubernetes for Developers explains topology key →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.