To remove the worker node from a Horizon Cloud Connector cluster, use the steps in the following procedure. When you remove the worker node from the cluster, Horizon Cloud Connector application services scale down and run as a single instance on the primary node.

Prerequisites

Get the IP address of the worker node VM that you want to remove from the cluster.

Procedure

  1. Open a Secure Shell (SSH) session to the primary node of the cluster and run the removal command, where <WORKER_IP> is the IP address of the worker node.
    /opt/vmware/sbin/primary-cluster-config.sh -rs <WORKER_IP>
    Allow the removal command to execute without interruption. The command displays progress output describing the removal of each replica service from the node. At the end of the command output, look for lines similar to the following example, where <WORKER_IP> and <PRIMARY_IP> are the IP addresses of the worker node and primary node, respectively.
    Please run the following command on worker node <WORKER_IP> to complete clean up:
    /opt/vmware/sbin/worker-cluster-config.sh -r <PRIMARY_IP>

    Make a note of this cleanup command.

  2. Open an SSH session to the worker node and run the cleanup command that you got earlier.
    /opt/vmware/sbin/worker-cluster-config.sh -r <PRIMARY_IP>
    Allow the cleanup command to execute without interruption.
    Note: The command displays progress output describing each cleanup task. You can disregard any messages about manually clearing configurations. No manual cleanup is required when removing a worker node from a Horizon Cloud Connector cluster.

    At the end of the output, look for a line similar to the following example:

    Please restart this VM to complete the clean up.
  3. Do one of the following.
  4. To verify the removal of the worker node from the cluster, run the following command on the primary node VM.
    kubectl get nodes -o wide
    In the command output, verify that the worker node is no longer listed as a member of the cluster.