🎓 LEVEL 47 DEBRIEF: PodDisruptionBudget¶
Congratulations! You've mastered PodDisruptionBudgets - maintaining availability during disruptions!
📊 What You Fixed¶
Problem: PDB requires 3 pods, deployment has 2
Solution: Scaled deployment and adjusted PDB
🎯 Understanding PodDisruptionBudget¶
Purpose¶
Maintain availability during voluntary disruptions: - Node drains - Deployments updates - Cluster upgrades
Two Settings¶
minAvailable (how many must stay up):
maxUnavailable (how many can be down):
Use one or the other, not both!
🔧 Common Patterns¶
High Availability¶
Allow Rolling Updates¶
Critical Services¶
💥 Common Mistakes¶
- minAvailable > replicas: Impossible to satisfy
- Both min and max: Use one only
- PDB without selector: Won't match pods
- Forgetting to scale: PDB blocks if not enough pods
🎯 Key Takeaways¶
- PDB = availability during disruptions
- minAvailable or maxUnavailable (not both)
- Must be satisfiable: min ≤ replicas
- Voluntary only: Doesn't prevent node failures
- Balance: Availability vs maintenance flexibility
🚀 Next Steps¶
- Level 48: Pod Security Standards
- Level 49: PriorityClass
- Level 50: CHAOS FINALE!
Great work! 🎉🛡️