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.

Prerequisites

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.

You must also have the appropriate permissions to attach the cluster.
  • 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.

Procedure

  1. Open a command window and connect to your cluster with kubectl.
  2. In the left navigation pane of the Tanzu Mission Control console, click Clusters.
  3. On the Clusters page, click Attach Cluster.
  4. 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.
  5. You can optionally provide a description and one or more labels.
  6. 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-tmc namespace and the following CRDs:
    • extensions.clusters.tmc.cloud.vmware.com
    • agents.clusters.tmc.cloud.vmware.com

    You can then work through the procedure again to attach the cluster.

  7. Copy the kubectl command from the text box in your console.
  8. 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.
  9. 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.