Manage Worker Nodes
To mark a node as unschedulable:
kubectl cordon <node-name>
kubectl uncordon <node-name>
To get the node backTo mark a node as unschedulable and remove all running pods from it
kubectl drain <node-name>
Pods that have started from a DaemonSet will not be removed while using
kubctl drian
, add--ignore-daemonsets
to ignore thatAdd
--delete-empty-dir
to delete fata from emptyDir Pod volumes