Stage 5, Part 9 of 9 · p. 46, Scheduling Deep Dive

Summary Cheat Sheet

ConceptKey Takeaway
SchedulerFilter → Score → Bind
Node SelectorSimple, hard requirement
Node AffinityAdvanced, hard/soft, rich operators
Pod AffinityCo-locate with other Pods
Pod Anti-AffinityKeep apart from other Pods
TaintNode repels Pods
TolerationPod allows taint
NoScheduleNew Pods blocked
NoExecuteExisting Pods evicted
PriorityClassHigher priority + preemption
PreemptionEvict lower-priority Pods
Topology SpreadEven distribution across domains
maxSkewMax difference between domains
DoNotScheduleHard topology spread
ScheduleAnywaySoft topology spread
Scheduler FrameworkPlugin architecture
Custom SchedulerOwn binary, own rules
Scheduler ProfileMultiple schedulers in one binary
DeschedulerRebalance existing Pods
NUMA-AwareAlign CPU/memory to NUMA nodes
Bin-PackingMostAllocated scoring
SpreadingLeastAllocated scoring (default)

1:1 copy of the class Google Doc, code in code blocks.