DevOps · Flashcard
In node affinity, multiple nodeSelectorTerms are ORed. Multiple matchExpressions within one term are ANDed. What does this mean in practice?
Why this is the answer
nodeSelectorTerms is an OR list — matching any one term is enough. But matchExpressions within a single term is an AND list — all expressions must match. This is a frequent source of misconfiguration: adding a second term when you meant to add a second expression within the first.
Read more in the docs