What does kubectl drain do to a node?
- Evicts pods and cordons
- Deletes its stored volumes
- Restarts the kubelet only
- Removes it from the cluster
Workloads move elsewhere and nothing new is scheduled, which is how a node is prepared for maintenance.
Play DevOps ▸