Bird
0
0

What will happen if you create a PDB with maxUnavailable: 0 for a deployment with 5 pods?

medium📝 Predict Output Q5 of 15
Kubernetes - Production Best Practices
What will happen if you create a PDB with maxUnavailable: 0 for a deployment with 5 pods?
APDB will be ignored by Kubernetes
BAll pods can be disrupted simultaneously
CAt least 1 pod must be available
DNo pods can be voluntarily disrupted at any time
Step-by-Step Solution
Solution:
  1. Step 1: Interpret maxUnavailable: 0

    maxUnavailable: 0 means zero pods can be disrupted voluntarily at once.
  2. Step 2: Understand effect on deployment

    For 5 pods, this means no voluntary disruptions like node drains can evict pods until manual override.
  3. Final Answer:

    No pods can be voluntarily disrupted at any time -> Option D
  4. Quick Check:

    maxUnavailable 0 means no voluntary disruptions = D [OK]
Quick Trick: maxUnavailable 0 blocks all voluntary pod disruptions [OK]
Common Mistakes:
  • Thinking maxUnavailable 0 allows some disruptions
  • Assuming PDB is ignored if maxUnavailable is zero
  • Confusing voluntary and involuntary disruptions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes