Use Tanzu Mission Control to manage Tanzu Kubernetes clusters running in a registered management cluster.
When you register a Tanzu Kubernetes Grid management cluster with Tanzu Mission Control, pre-existing workload clusters running in the management cluster are exposed to Tanzu Mission Control, but they are not added into Tanzu Mission Control management by default. You must identify the workload clusters you want to add and specify the cluster group with which to associate the clusters.
Prerequisites
This procedure assumes that you have a Tanzu Kubernetes Grid cluster, and have already registered its management cluster with Tanzu Mission Control.
Log in to the Tanzu Mission Control console.
Make sure you have the appropriate permissions:
- To bring a workload cluster under Tanzu Mission Control management, you must be associated with the managementcluster.admin role, as well as the clustergroup.edit role to add it to a cluster group.
If your
Tanzu Kubernetes Grid (version 1.6 and 2.1.x) instance uses a self-signed, private CA certificate for the registry, then TKG uses the same image registry as
Tanzu Mission Control Self-Managed. Deploy your management cluster using your private image repository by specifying the following environment variables, as described in the
Configuration File Variable Reference in the
VMware Tanzu Kubernetes Grid Product Documentation:
TKG_CUSTOM_IMAGE_REPOSITORY
TKG_CUSTOM_IMAGE_REPOSITORY_CA_CERTIFICATE
TKG_CUSTOM_IMAGE_REPOSITORY_SKIP_TLS_VERIFY
TKG_CUSTOM_COMPATIBILITY_IMAGE_PATH
(optional)
Procedure
- In the left navigation pane of the Tanzu Mission Control console, click Administration, and then click the Management clusters tab.
- In the table of management clusters, click the management cluster that contains the workload cluster you want to add.
Note: Management clusters created using
Tanzu Community Edition prior to version 0.12 are shown as
Tanzu Kubernetes Grid clusters.
- On the management cluster detail page, click the Workload clusters tab.
- In the list of workload clusters, select the clusters you want to add by clicking the checkbox next to the name, and then click Manage # Cluster(s).
- In the confirmation dialog, you can optionally change the default selections for the workload cluster.
The default selections for cluster group are specified by the management cluster.
- You can optionally specify an alternative cluster group for this workload cluster.
- Click Manage.
Results
When you click Manage, Tanzu Mission Control installs the cluster agent extensions on the workload cluster and adds it to the specified cluster group.