- Home
- All questions
- Question 682
CKA study material · question 682 of 1000
A Pod sets both a nodeSelector for disk=ssd and a required node affinity for zone in [a, b]. Which nodes are eligible?
Show the answer
Answer: B. Nodes matching both conditions
nodeSelector and node affinity are combined rather than treated as alternatives, so a node has to satisfy both for the Pod to be placed there.
Source: Assigning Pods to Nodes (Kubernetes) — Affinity and anti-affinity › Node affinity