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.
Download kubeconfigto download
kubeconfigof your management cluster.
Log in to any local machine with
Copy the downloaded
kubeconfigto this machine.
Run the following command:
kubectl --kubeconfig <mgmtClusterKubeconfigPath> edit -n <projectName> cluster <managedClusterName>
Edit the opened
kubeconfigby 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.