Remove a regional cluster¶
This section describes how to remove a regional cluster.
To remove a regional cluster:
Log in to the Container Cloud web UI with the
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.
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 Create and operate managed clusters.
Delete the credentials associated with the region:
In the Credentials tab, click the first credentials name.
In the window that opens, capture the Region Name field.
Repeat two previous steps for the remaining credentials in the list.
Delete all credentials with the name of the region that you are going to remove.
Log in to a local machine where your management and regional clusters
kubeconfigfiles are located and where
The management or regional cluster
kubeconfigfiles are created during the last stage of the management or regional cluster bootstrap.
Verify that the bootstrap directory is updated.
Select from the following options:
For clusters deployed using Container Cloud 2.11.0 or later:
./kaas bootstrap download --management-kubeconfig <pathToMgmtKubeconfig> \ --target-dir <pathToBootstrapDirectory>
For clusters deployed using the Container Cloud release earlier than 2.11.0 or if you deleted the
kaas-bootstrapfolder, download and run the Container Cloud bootstrap script:
wget https://binary.mirantis.com/releases/get_container_cloud.sh chmod 0755 get_container_cloud.sh ./get_container_cloud.sh
Run the following script with the corresponding values of your cluster:
REGIONAL_CLUSTER_NAME=<regionalClusterName> REGIONAL_KUBECONFIG=<pathToRegionalClusterKubeconfig> KUBECONFIG=<mgmtClusterKubeconfig> ./bootstrap.sh destroy_regional
Removing a management or regional cluster using the Container Cloud web UI is not supported.