Make room for checkout

  • 12 min
  • 6 steps
  • Scheduling and nodes

Steps

0 of 6 done

A batch job fills every worker and the checkout service sits Pending. Give checkout a PriorityClass, watch the scheduler preempt a batch pod, and read what it left behind.

  1. Step 1 of 6

    The checkout pod is Pending. Find the scheduler's explanation, including what it concluded about preemption.

    Checked against what your commands print.

  2. Step 2, not started: List the PriorityClasses in the cluster. Note the value of the class the batch pods use, and the value checkout gets with no class at all.

  3. Step 3, not started: Create the web-critical PriorityClass. Its manifest is in web-critical.yaml; read it first.

  4. Step 4, not started: Give the checkout Deployment's pods the web-critical class, and wait until checkout has one ready replica.

  5. Step 5, not started: Checkout runs, so something made room. Find the record of which batch pod was removed, and on which node.

  6. Step 6, not started: Show the integer priority stored on the running checkout pod. Admission resolved the class name to this number when the pod was created.

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.