Removing an unresponsive IBM Cloud Private cluster node

Remove an unresponsive node from your IBM® Cloud Private cluster.

  1. Set up kubectl CLI. See Accessing your cluster from the kubectl CLI.
  2. Get a list of your cluster nodes.

    kubectl get nodes
    

    Following is a sample output:

    NAME             STATUS    ROLES                          AGE       VERSION
    172.16.151.126   Ready     etcd,management,master,proxy   39d       v1.11.1+icp-ee
    172.16.151.182   NotReady  worker                         39d       v1.11.1+icp-ee             <<<<<<< unresponsive node
    172.16.155.135   Ready     worker                         39d       v1.11.1+icp-ee
    
  3. Delete the unresponsive node from your cluster.

    kubectl delete node <node-IP-address>
    

    Following is a sample command and output:

    kubectl delete node 172.16.151.182
    node "172.16.151.182" deleted
    
  4. Remove the IP address of the unresponsive node from the <installation_directory>/cluster/hosts file.