Kubernetes & Operations
PDB and safe draining
A PodDisruptionBudget limits how many pods of an app can be evicted at once during planned work, such as a node drain, and the Eviction API enforces it.
What you will be able to do
- Explain how voluntary and involuntary disruptions differ, and how the Eviction API checks a budget.
- Decide between minAvailable and maxUnavailable for a service's replica count and upgrade pace.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- StatefulSetsAdvanced · 4 min
A StatefulSet gives each pod a stable name and its own claim, so a pod's identity and its data stay together, including after a node failure.
- HPA VPA and KEDAAdvanced · 4 min
HPA scales replica counts from a metric ratio, and the metric you pick decides whether it tracks real work, such as a queue backlog, or only CPU.
- Service and EndpointSlice: operational verificationAdvanced · 4 min
Endpoint state during a rollout shows when a pod stops receiving traffic, and matching it against client errors shows whether the fault is in shutdown or propagation.