Tanzu Mission Control - Attaching Clusters


I've already written a short intro post to Tanzu Mission Control (TMC) here, where we attached an existing cluster.

In this post we'll take a look at attaching clusters, both existing clusters from different clouds and providers. With the interest of not writing a too long blog post I've left the creation of new clusters out, you can read my blog post on that here.

Cluster groups

Cluster groups

Before adding anything else to our TMC instance we'll create a couple of Cluster groups just to keep things a bit tidy. How you structure this is obviously up to you, I'll add groups for my different environments

Create cluster group

I'll start by having three groups, including the default one.

Cluster group list

Now let's quickly move our existing cluster to one of the newly added cluster groups.

We'll open our cluster, hit the Actions menu at the top right and hit Move

Move cluster

Select the desired group from the drop down and hit Move

Select new group

If all goes well the cluster should now reside in our desired cluster group

Cluster moved to group

Adding existing clusters

As long as an existing cluster can talk to TMC we should be able to attach clusters from any cloud or provider. For more info about what is happening when we're attaching clusters see the documentation.

We'll take a look at a few examples

Tanzu Kubernetes Grid Service (TKGS)

In my previous post I added a TKGS cluster running in a lab environment. The underlying vSphere with Tanzu is using NSX-T as the networking stack.

Now we'll add a cluster from my private lab environment where I have vSphere with Tanzu running with the DVS option (vSphere Networking) and the HAProxy load balancer

Cluster in different lab environment

Now we'll run the Attach cluster wizard and pull out the TMC connection yaml string

Attach cluster

After creating the TMC extensions in the cluster we'll verify the connection to see if things are working

Verify connection

Our cluster should now be visible in the Clusters view and we can see the details of it

Cluster view

I won't cover all the tabs of a cluster here, we had a quick look at that in the previous post. One thing I have noticed is that it seems TMC can't get all of the statuses correctly so I end up with an unknown status on some of these clusters.

Cluster Dashboard

Native cluster

Now let's try to add a Kubernetes cluster running on VMs to TMC. Note that this is not running as a Tanzu cluster, it's configured on separate Ubuntu VMs with kubeadm. I've covered the process of setting up a cluster like this in this post

Native Kubernetes cluster

Again, we will run the Attach cluster wizard and copy out that yaml connection string.

After a while the cluster status should change from Unknown to (hopefully) Healthy and you can view your cluster just as with the other examples

Native cluster info

Note that the Provider states Unknown and that the Version is listed as the native version without the added VMware component.

AKS cluster

Now, let's try to add a cluster running on Azure.

Azure cluster

Again, after running the Attach cluster wizard and adding the TMC extensions in the cluster, the cluster should get it's information and status updated

Azure cluster status


That concludes this post. Hopefully this post has shown how we can add existing clusters from multiple different clouds and providers.

After our work we have a few clusters in our TMC console. We can quickly see the health status of the clusters, provider and version information and the resources allocated and used.

Cluster overview

In a few upcoming posts we'll dive in to a few other use-cases for TMC, e.g. creating clusters, upgrading and scaling clusters, working with policies, data protection and more

Thanks for reading!

This page was modified on March 6, 2021: Fixed broken link