Attach a cluster, if you already have one, to your VMware Tanzu Mission Control organization.
Attaching a cluster involves registering the cluster name with the Tanzu Mission Control cluster agent service, and then installing the cluster agent extensions on the cluster. For more information about how this works, see What Happens When You Attach a Cluster in VMware Tanzu Mission Control Concepts.
This part of the walk-through requires that you have a running cluster that was not provisioned through Tanzu Mission Control. If you don't have one, you can skip this section.
- To attach a cluster, you must be associated with the clustergroup.edit role on the cluster group in which you want to put the new cluster.
- On the cluster, you must have admin permissions to install and run the cluster agent extensions.
- Open a command window and connect to your cluster with kubectl.
- In the left navigation pane of the Tanzu Mission Control console, click Clusters.
- On the Clusters page, click Attach Cluster.
- Select the cluster group in which you want to register the cluster, and enter a name for the cluster.
This name appears in the list of clusters on the Clusters page.
- You can optionally provide a description and one or more labels.
- Click Register.
When you click Register, Tanzu Mission Control generates a YAML manifest specifically for your cluster, and displays the kubectl command to run the manifest.Note: The YAML manifest generated by Tanzu Mission Control contains credentials that permit the cluster to attach to the cluster agent service. These credentials are valid for 48 hours. If you attempt to install the agent extensions after the credentials lapse, the attachment fails and your cluster remains indefinitely in Pending status in the Tanzu Mission Control console.If you suspect you are in this situation, locate your cluster on the Clusters page of the Tanzu Mission Control console, then select the cluster and click Detach to remove the cluster from the cluster agent service registry. Then, in your cluster, delete the
vmware-system-tmcnamespace and the following CRDs:
You can then work through the procedure again to attach the cluster.
- Copy the kubectl command from the text box in your console.
- Run the command in your kubectl command window.
The YAML manifest runs a small set of extensions in your cluster to connect it with the cluster agent service.
- After the extensions are up and running in your cluster, return to the Tanzu Mission Control console and click Verify Connection.
Although this verification is optional, it is a good idea to make sure that Tanzu Mission Control and the cluster are communicating with each other.