Remove a regional cluster

Remove a regional cluster

This section describes how to remove a regional cluster.

To remove a regional cluster:

  1. Log in to the Container Cloud web UI with the writer permissions.

  2. Switch to the project with the managed clusters of the regional cluster to remove using the Switch Project action icon located on top of the main left-side navigation panel.

  3. Verify that you have successfully deleted all managed clusters that run on top of the regional cluster to be removed. For details, see the corresponding Delete a managed cluster section depending on your cloud provider in Operate managed clusters.

  4. Delete the credentials associated with the region:

    1. In the Credentials tab, click the first credentials name.

    2. In the window that opens, capture the Region Name field.

    3. Repeat two previous steps for the remaining credentials in the list.

    4. Delete all credentials with the name of the region that you are going to remove.

  5. Log in to a local machine where your management and regional clusters kubeconfig files are located and where kubectl is installed.

    Note

    The management or regional cluster kubeconfig files are created during the last stage of the management or regional cluster bootstrap.

  6. Run the following script with the corresponding values of your cluster:

    REGIONAL_CLUSTER_NAME=<regionalClusterName> REGIONAL_KUBECONFIG=<pathToRegionalClusterKubeconfig> KUBECONFIG=<mgmtClusterKubeconfig> ./bootstrap.sh destroy_regional
    

Note

Removing a management or regional cluster using the Container Cloud web UI is not supported.