Steps To Remove or Delete Node From Kubernetes Cluster Gracefully
Follow the steps mentioned below to gracefully remove the node from the kubernetes cluster.
Step 1: List all the nodes available in the Kubernetes Cluster.
kubectl get nodes
Step 2: Before removing the node you should drain the node then the pods which running in that node will schedule in another node.You can use the command.
kubectl drain <node-name>
Step 3: Know delete the node by using the command mentioned below.
kubectl delete node <node-name>
You can see in the below image node01 was removed gracefully.
How to Gracefully Remove a Node from Kubernetes?
Maintaining your nodes in peak condition is part of managing a Kubernetes cluster. However, a node may occasionally need to be taken offline for decommissioning, maintenance, or upgrades. This is where a gentle removal becomes useful, guaranteeing a seamless transfer without interfering with your active apps.
Contact Us