Log inStart free
LESSON 33.08 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Kubernetes scheduling for GPUs

See the scheduler place seven pods on GPU nodes, then enforce their limits.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 33.08 · SCHEDULER7 PODS · 4 NODES · 12 GPUS
01
Stage 1 of 6 · Pods wait
Seven pods wait in the queue. Each pod lists its resource requests: CPU cores, memory and GPUs.
Explain it simply

On the left, seven pods wait. A pod is the smallest thing Kubernetes runs, one or more containers on one machine. Each card shows its requests, the cores, memory and GPUs it asks for. On the right are four nodes, the machines, with their GPUs.

Seven pod cards wait in a queue. Four node boxes: cpu-1 without GPUs, l4-1 with 4 L4 GPUs, h100-1 and h100-2 with 4 H100 GPUs each.

pods and requestsnodes, labels, taintsrejected, failed or wastedscores and resultsfree
pod queuenodescpu-1gpu: noneno GPUsCPU0/24mem0/96l4-1gpu: L4taintPCIeCPU0/48mem0/256h100-1gpu: H100taintPCIeCPU0/32mem0/256h100-2gpu: H100taintPCIeCPU0/32mem0/256012301230123webno GPU8 CPU · 32 GiBapino GPU8 CPU · 32 GiBworkerno GPU8 CPU · 32 GiBtrain-a4 GPU28 CPU · 192 GiBinfer-11 GPU4 CPU · 32 GiBinfer-21 GPU4 CPU · 16 GiBtrain-b2 GPU12 CPU · 96 GiBfit: request ≤ free, for CPU, memory and GPUspod queuenodescpu-1gpu: noneno GPUsCPU0/24mem0/96l4-1gpu: L4taintPCIeCPU0/48mem0/256h100-1gpu: H100taintPCIeCPU0/32mem0/256h100-2gpu: H100taintPCIeCPU0/32mem0/256012301230123webno GPU8 CPU · 32 GiBapino GPU8 CPU · 32 GiBworkerno GPU8 CPU · 32 GiBtrain-a4 GPU28 CPU · 192 GiBinfer-11 GPU4 CPU · 32 GiBinfer-21 GPU4 CPU · 16 GiBtrain-b2 GPU12 CPU · 96 GiBfit: request ≤ free, for CPU, memory and GPUs
Toy: 4 nodes, 12 GPUs, 7 pods; scores as LeastAllocated
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
r≤f\sy{r}{data}{r} \le \sy{f}{param}{f}
train-a on h100-1: 28≤32, 192≤256, 4≤4\text{train-a on h100-1: } 28 \le 32,\ 192 \le 256,\ 4 \le 4

A node fits a pod if each request is at most the free amount.

Common mix-ups

MYTHThe scheduler places pods by their limits.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01Without GPU taints, and with H100 required, where does train-a run?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.