kubectl drain node-b has been printing Cannot evict pod as it would violate the pod's disruption budget for twenty minutes. The pod belongs to a Deployment with 1 replica and a PDB of minAvailable: 1. What is going on and what is the right fix?
- Use
--forceto make drain delete the pod. --force only applies to pods without a controller; and bypassing a PDB with --disable-eviction defeats the protection someone asked for. - Delete the PDB; PDBs are only for StatefulSets. PDBs apply to any pods matching the selector; the PDB is doing its job, it is just unsatisfiable.
- Wait; the eviction will succeed once the pod's grace period expires. PDB checks do not time out; drain retries forever.
- The PDB can never be satisfied during a voluntary disruption of a single replica; either scale the Deployment to 2 first, or change the PDB (maxUnavailable: 1), then drain. minAvailable 1 with 1 replica means zero disruptions allowed; drain correctly refuses. Fix the budget or the replica count, not the drain.
The PDB can never be satisfied with one replica, so scale to 2 or change the budget, then drain.
A PDB is a promise about voluntary disruptions: never fewer than N available. With one replica, keeping one available means never evicting, so every drain stalls. This is a design smell (single replica plus a budget), and the interview-preferred answer fixes the design, not the tool. Interviewers also like hearing that PDBs do nothing for involuntary failures like node crashes.
Reaching for --force or --disable-eviction to push the drain through. That removes the protection someone asked for; the fix is the replica count or the budget, and it should be raised as a design bug.