โ† Kubernetes Administrator (CKA) Exam Practice learning path
Kubernetes Administrator (CKA) Exam Practice ยท Module 4 of 10

Scheduling

Controlling where pods run.

๐Ÿ“– Key ideas

  1. nodeSelector places pods on nodes with matching labels.
  2. Node affinity offers richer rules (required or preferred).
  3. Taints repel pods; tolerations allow pods onto tainted nodes.
  4. Resource requests guide scheduling; limits cap usage.
  5. kubectl cordon marks a node unschedulable; kubectl drain evicts pods for maintenance; uncordon re-enables it.
๐Ÿ’ก Real-life example: Like reserving certain rooms for exams only: a "No entry" sign (taint) with special passes (tolerations).
nodeSelectorSimple label-based node selection
TaintNode property that repels pods
TolerationPod property allowing tainted nodes
DrainEvict pods before node maintenance