Check Nodes
kubectl get nodes ➜ ~ kubectl get nodes NAME STATUS ROLES AGE VERSION master1 Ready control-plane,master 517d v1.21.5 master2 Ready control-plane,master 517d v1.21.5 master3 Ready control-plane,master 517d v1.21.5 worker1 Ready worker 517d v1.21.5 worker2 Ready worker 517d v1.21.5 worker3 Ready worker 517d v1.21.5
Cordon the node
kubectl cordon [NODENAME]
Drain the node
kubectl drain [NODENAME] --ignore-daemonsets --force --delete-local-data
Uncordon the node
kubectl uncordon [NODENAME]