Bird
0
0

Why might a pod with required node affinity fail to schedule even if nodes have matching labels?

hard📝 Conceptual Q10 of 15
Kubernetes - Scheduling
Why might a pod with required node affinity fail to schedule even if nodes have matching labels?
ABecause node labels are case-insensitive and mismatched
BBecause preferred node affinity rules override required rules
CBecause pod anti-affinity rules prevent scheduling on those nodes
DBecause Kubernetes ignores node affinity during scheduling
Step-by-Step Solution
Solution:
  1. Step 1: Understand interaction of affinity and anti-affinity

    Even if node affinity matches, pod anti-affinity rules can block scheduling on those nodes.
  2. Step 2: Evaluate other options

    Preferred affinity does not override required; node labels are case-sensitive; Kubernetes respects affinity rules.
  3. Final Answer:

    Because pod anti-affinity rules prevent scheduling on those nodes -> Option C
  4. Quick Check:

    Anti-affinity can block scheduling despite node affinity match [OK]
Quick Trick: Anti-affinity can block scheduling even if node affinity matches [OK]
Common Mistakes:
  • Assuming preferred affinity overrides required
  • Ignoring pod anti-affinity effects
  • Thinking node labels are case-insensitive

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes