A Pod Disruption Budget (PDB) limits how many Pods from a workload may be unavailable during disruptions. During node maintenance, Kubernetes uses the budget to avoid evicting too many replicas at once. section 12.1.3
Configure a PDB by choosing:
- maxUnavailable to limit the number of Pods that may be unavailable. section 12.1.3
- minAvailable to specify how many replicas must remain available. section 12.1.3
- A selector that identifies the workload’s Pods. section 12.1.3
Protecting a replicated workload
A PDB with maxUnavailable: 1 for Pods labeled pod: timeserver-pod ensures that Kubernetes does not make more than one matching Pod unavailable during disruption. When draining a node, Kubernetes waits for enough Pods to remain available before deleting others. section 12.1.3
