How to Switch CNI in a Tanzu Kubernetes Cluster

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 on Default 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s