Enable the Antrea-NSX Adapter for an existing TKG Service Cluster
book
Article ID: 369589
calendar_today
Updated On:
Products
VMware NSXVMware vSphere ESXiVMware vSphere with Tanzu
Issue/Introduction
Enable or disable Antrea-NSX integration for an existing TKG cluster, for vSphere 8.0 U3.
Environment
vSphere 8 U3 (8.0.3) or later
NSX 4.1 or later
TKG Service 3.0 or later
Tanzu Kubernetes release v1.28.x for vSphere 8.x or later
Cause
This is not officially supported.
Impact:
customers had to configure AntreaConfig.spec.antreaNSX.enable before deploying a TKG cluster. The configuration cannot be changed after the TKG cluster is deployed.
Resolution
Workaround:
Enabling/disabling Antrea-NSX after the cluster is deployed is an experimental feature.
Set spec.antreaNSX.enable as true or false by following command:
An editor will be started, and customers can use the editor to change the configuration. After saving and exiting the editor, the changes will be submitted automatically. Then the Antrea-NSX Adapter will be deployed once spec.antreaNSX.enabled set as true. But when customers want to disable this feature, it is necessary to set spec.antreaNSX.enabled set as first, and run following commandlines. Here we take the cluster guestcluster4 in namespace gctest as an example.