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.
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.
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.
Step 3, not started: Create the
web-criticalPriorityClass. Its manifest is inweb-critical.yaml; read it first.Step 4, not started: Give the checkout Deployment's pods the
web-criticalclass, and wait until checkout has one ready replica.Step 5, not started: Checkout runs, so something made room. Find the record of which batch pod was removed, and on which node.
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.
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.