Cluster deletion or detachment freezes¶
If you delete managed cluster nodes not using the Container Cloud web UI or API, the cluster deletion or detachment may hang with the Deleting message remaining in the cluster status.
To apply the issue resolution:
Expand the menu of the tab with your username.
Click
Download kubeconfig
to downloadkubeconfig
of your management cluster.Log in to any local machine with
kubectl
installed.Copy the downloaded
kubeconfig
to this machine.Run the following command:
kubectl --kubeconfig <mgmtClusterKubeconfigPath> edit -n <projectName> cluster <managedClusterName>
Edit the opened
kubeconfig
by removing the following lines:finalizers: - cluster.cluster.k8s.io
Manually clean up the resources of the nodes that you have previously deleted not using the Container Cloud web UI.