Bird
0
0

Which Kubernetes feature helps ensure pods are NOT scheduled on the same node as other pods with specific labels?

easy📝 Conceptual Q2 of 15
Kubernetes - Scheduling
Which Kubernetes feature helps ensure pods are NOT scheduled on the same node as other pods with specific labels?
ApodAffinity
BnodeSelector
CresourceQuota
DpodAntiAffinity
Step-by-Step Solution
Solution:
  1. Step 1: Identify anti-affinity purpose

    podAntiAffinity prevents pods from being scheduled on nodes where pods with certain labels already exist.
  2. Step 2: Match options to definitions

    Only podAntiAffinity matches the requirement to avoid co-locating pods with specific labels.
  3. Final Answer:

    podAntiAffinity -> Option D
  4. Quick Check:

    podAntiAffinity = Avoid scheduling with matching pods [OK]
Quick Trick: podAntiAffinity avoids pods on same node as matching pods [OK]
Common Mistakes:
  • Mixing podAffinity and podAntiAffinity
  • Confusing nodeSelector with affinity rules
  • Thinking resourceQuota controls pod placement

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes