How to delete Kubernetes Worker Node
Log in to any Kubernetes Master node.
Mark the Node as unschedulable to prevent new pods from being assigned to it:
kubectl cordon <node_ID> kubectl drain <node_ID>
Remove the Kubernetes Node:
kubectl delete node cmp<node_ID>
Wait until the workloads are gracefully deleted and the Kubernetes Node is removed.
Verify that the node is absent in the Kubernetes Nodes list:
kubectl get nodes
delete kubernetes worker node |
Here We are deleting kubernetes node "nodeone-1"
No comments