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.

  1. Step 1 of 6

    A platform engineer reports that drains of kx-worker time out. Find the disruption budget that covers web and how many voluntary disruptions it allows at this moment.

    Checked against what your commands print.

  2. 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.

  3. Step 3, not started: Change the budget in place so that it tolerates one web pod down at a time, however many replicas the Deployment runs. A budget cannot carry both of its count fields.

  4. Step 4, not started: A web pod 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.

  5. Step 5, not started: Drain kx-worker. The web Deployment must be back to three ready replicas afterwards.

  6. Step 6, not started: Return kx-worker to service.

Lab terminal

Cluster time 50 seconds
kind cluster kx, Kubernetes 1.37.
Each step is checked as you work.
​
Tab completes. Up and Down recall.
Type help for more.
Terminal keys

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.