$ ./guess_the_languageDevOps
DevOps · medium · #194

What does kubectl drain do to a node?

  1. Evicts pods and cordons
  2. Deletes its stored volumes
  3. Restarts the kubelet only
  4. Removes it from the cluster
Workloads move elsewhere and nothing new is scheduled, which is how a node is prepared for maintenance.
Play DevOps ▸