Attach a cluster to your VMware Tanzu Mission Control organization that was previously attached and subsequently fell into a disconnected state.
The procedure described in this topic shows how to verify whether the connection is recoverable, and if so, how to reattach the cluster to your Tanzu Mission Control organization.
This procedure is also applicable for clusters on which you might have started, but never completed, the attach process and the client credentials have expired.
- Open a browser and log in to the Tanzu Mission Control console.
- Open a command window and log in with the Tanzu Mission Control CLI.
- To attach or reattach a cluster, you must be associated with the clustergroup.edit role on the cluster group in which you want to attach the cluster.
- On the cluster, you must have admin permissions to install and run the cluster agent extensions.
- In the Tanzu Mission Control console, navigate to the cluster you want to reattach.
When an attached cluster is in a disconnected state, the cluster detail page displays a command that you can use to evaluate the condition of the cluster.
- On the cluster detail page, copy the displayed command.
The command looks something like this:
tmc cluster validate -k <path_to_KUBECONFIG>
- In the command window, run the command, replacing <path_to_KUBECONFIG> with the path and name of your kubeconfig file for this cluster.
The resulting ouput shows the tests that were run to determine the cause of the disconnect, and the
tmccommand that you can use to reattach the cluster. The command looks something like this:
tmc cluster reattach -n <CLUSTER_NAME> -k /path/to/kubeconfig
- In the command window, run the displayed command, replacing <CLUSTER_NAME> with the name of the cluster as displayed on cluster detail page in the Tanzu Mission Control console.
The reattach command performs the necessary updates to the cluster agent extensions on the cluster to re-establish the connection between the cluster and the Tanzu Mission Control cluster agent.