In this section, we will take a look at OS upgrades.
drain
the node of all the workloads so that the workloads are moved to other nodes.
$ kubectl drain node-1
$ kubectl uncordon node-1
There is also another command called cordon. Cordon simply marks a node unschedulable. Unlike drain it does not terminate or move the pods on an existing node.