What happens to the pods already running on node-2?
kubectl cordon node-2
- They are evicted at once
- They keep running there
- They are paused in place
- They restart on new nodes
Cordon only marks the node unschedulable so no new pods land on it. Evicting the existing pods is what kubectl drain adds on top.
Play DevOps ▸