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:

  1. Expand the menu of the tab with your username.

  2. Click Download kubeconfig to download kubeconfig of your management cluster.

  3. Log in to any local machine with kubectl installed.

  4. Copy the downloaded kubeconfig to this machine.

  5. Run the following command:

    kubectl --kubeconfig <mgmtClusterKubeconfigPath> edit -n <projectName> cluster <managedClusterName>
    
  6. Edit the opened kubeconfig by removing the following lines:

    finalizers:
    - cluster.cluster.k8s.io
    
  7. Manually clean up the resources of the nodes that you have previously deleted not using the Container Cloud web UI.