Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)
Pod Disruption Budgets (PDB) and Zero-Downtime Node Draining.
senior LevelMost AskedSecurity & AuthKubernetesApache Kafka
In Simple Words:
When upgrading Kubernetes nodes (kubectl drain <node>), Kubernetes evicts all running Pods from the node:
- Pod Disruption Budget (PDB): Enforces that a minimum number of Pod replicas (e.g.
minAvailable: 2ormaxUnavailable: 25%) must remain online and healthy before the eviction API is allowed to terminate a Pod, preventing voluntary outages during cluster upgrades.