cordon
Marking a node unschedulable so no new pods are placed on it, while the pods already there keep running.
In more detail
It is the first step of maintenance. Draining evicts the existing pods, and uncordon returns the node to service afterwards.
Example
kubectl cordon node-aRelated terms
- drain — Cordoning a node and then evicting its pods through the eviction API so it can be safely maintained or removed.
- taint — A mark on a node that repels pods which do not tolerate it, used to reserve nodes or keep work off unhealthy ones.
- uncordon — Marking a cordoned node as available for scheduling again so it can receive new pods.
Taught in
- A Node Goes NotReady Forty Minutes In — Certified Kubernetes Administrator (CKA) Exam Prep
- Placing Pods: Selectors, Affinity, Taints And Requests — Certified Kubernetes Administrator (CKA) Exam Prep
- Drain, Upgrade, Version Skew And Certificate Maintenance — Kubernetes: Production-Grade Container Orchestration