Unblock a drain without dropping the budget
- 12 min
- 6 steps
- Scheduling and nodes
Steps
0 of 6 done
A PodDisruptionBudget that demands every replica stops any node drain. Read why, rewrite it to allow one disruption, and drain the node.
Step 1 of 6
A platform engineer reports that drains of
kx-workertime out. Find the disruption budget that coversweband how many voluntary disruptions it allows at this moment.Checked against what your commands print.
Step 2, not started: Show the budget's full status. Find the condition the disruption controller set, and the two numbers it compares to reach zero.
Step 3, not started: Change the budget in place so that it tolerates one
webpod down at a time, however many replicas the Deployment runs. A budget cannot carry both of its count fields.Step 4, not started: A
webpod that never turns ready should not be able to hold a drain hostage. Set the budget's policy for unhealthy pods so they can always be evicted.Step 5, not started: Drain
kx-worker. ThewebDeployment must be back to three ready replicas afterwards.Step 6, not started: Return
kx-workerto service.
Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.