Dedicated nodes and a NoExecute retirement

  • 12 min
  • 5 steps
  • Scheduling and nodes

Steps

0 of 5 done

Get batch pods onto a tainted, labeled node pool, then retire a worker with a NoExecute taint and watch the eviction.

  1. Step 1 of 5

    Both crunch pods are Pending. Read the scheduler's message and note the two different reasons it gives.

    Checked against what your commands print.

  2. Step 2, not started: The message does not name the taint. Find the taint on the node that crunch selects with its pool=batch label.

  3. Step 3, not started: Add a toleration for that exact taint to the crunch pod template so both replicas run on the batch node.

  4. Step 4, not started: kx-worker2 is being retired. Taint it retiring=true with the effect that also removes pods already running there, and let web recover its three replicas elsewhere.

  5. Step 5, not started: Find the events that record which pods the taint removed from kx-worker2.

Lab terminal

Cluster time 1 minute
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.