Removing an IBM Cloud Private cluster node

Remove a cluster node from your IBM® Cloud Private cluster.

  1. Change to the cluster directory within your IBM Cloud Private installation directory:

     cd /<installation_directory>/cluster
    
  2. If you want to remove a a IBM® Z worker node from your cluster, the /<installation_directory>/cluster/images folder must contain the ibm-cloud-private-s390x-3.1.1.tar.gz file.

  3. To remove a node, run the following command:

     docker run -e LICENSE=accept --net=host \
     -v "$(pwd)":/installer/cluster \
     ibmcom/icp-inception-$(uname -m | sed 's/x86_64/amd64/g'):3.1.1-ee uninstall -l \
     ip_address_clusternode1,ip_address_clusternode2
    

    In this command, ip_address_clusternode1 and ip_address_clusternode2 are IP addresses of nodes that are listed in the hosts file. These nodes can be a combination of worker, proxy, or management nodes.