โ Kubernetes Administrator (CKA) Exam Practice learning pathKubernetes Administrator (CKA) Exam Practice ยท Module 4 of 10
Scheduling
Controlling where pods run.
๐ Key ideas
- nodeSelector places pods on nodes with matching labels.
- Node affinity offers richer rules (required or preferred).
- Taints repel pods; tolerations allow pods onto tainted nodes.
- Resource requests guide scheduling; limits cap usage.
- 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