In this blog post, I will help you with the steps to change default CNI for Tanzu Kubernetes Cluster on a vSphere with Tanzu environment.
First of all, by default Tanzu Kubernetes Workload Clusters uses Antrea
CNI and you can switch to Calico
CNI anytime in a just few clicks from your familier vCenter UI.
To validate the currently used CNI, follow the below steps:
- Login to a vCenter environment
- Select Cluster and click
Configure
option - Scroll down and you will see
TKG Service
option, click onDefault CNI

- As you can see in the above screenshot, it is set to
Antrea
. - Select
Calico
option

- Notice the warning message. So the updated setting will not change an existing clusters and only applicable on new clusters.
- Click on
Update
option and you are done 🙂

- Go ahead and deploy a new Tanzu Kubernetes workload clusters to test the CNI.
- You can switch back to
Antrea
too, if required.