Bird
0
0

Why might a required podAntiAffinity rule cause pods to remain pending indefinitely in a cluster?

hard📝 Conceptual Q10 of 15
Kubernetes - Scheduling
Why might a required podAntiAffinity rule cause pods to remain pending indefinitely in a cluster?
ABecause podAntiAffinity rules are ignored by the scheduler
BBecause no nodes satisfy the anti-affinity rule due to existing pods with matching labels on all nodes
CBecause podAntiAffinity only works with preferredDuringSchedulingIgnoredDuringExecution
DBecause podAntiAffinity requires manual approval before scheduling
Step-by-Step Solution
Solution:
  1. Step 1: Understand required podAntiAffinity behavior

    Required podAntiAffinity blocks scheduling on nodes with pods matching the label selector.
  2. Step 2: Analyze cluster state impact

    If all nodes have pods with matching labels, no node satisfies the rule, so pods remain pending indefinitely.
  3. Final Answer:

    Because no nodes satisfy the anti-affinity rule due to existing pods with matching labels on all nodes -> Option B
  4. Quick Check:

    Required podAntiAffinity blocks scheduling if no suitable node [OK]
Quick Trick: Required podAntiAffinity blocks scheduling if no node fits rule [OK]
Common Mistakes:
  • Thinking podAntiAffinity is ignored by scheduler
  • Confusing required with preferred affinity
  • Assuming manual approval is needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes