- Home
- All questions
- Question 677
CKA study material · question 677 of 1000
A Pod spec has two topology spread constraints, both with topologyKey kubernetes.io/hostname and whenUnsatisfiable: DoNotSchedule. Why is this rejected?
Show the answer
Answer: C. Only one constraint may combine a given topologyKey with a given whenUnsatisfiable value
Two constraints on the same topologyKey are allowed only when their whenUnsatisfiable values differ, so a second DoNotSchedule constraint on the same key is invalid.
Source: Pod Topology Spread Constraints (Kubernetes) — Spread constraint definition