Closed vijaykatam closed 2 years ago
@vijaykatam , My Analysis:
I see that NSXT_POD_ROUTING_ENABLED variable is available as a part of the Tanzu Cluster Configuration Variables excel sheet
It is a configuration variable which can also be set in Tanzu Kubernetes cluster yaml ( Section: NSX-T Pod Routing in https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/1.4/vmware-tanzu-kubernetes-grid-14/GUID-tanzu-config-reference.html#common-variables-for-all-infrastructure-providers-0 )
Further, if NSXT_POD_ROUTING_ENABLED is true, ANTREA_PROXY should be set to true (https://github.com/vmware-tanzu/tanzu-framework/blob/e8a083109169b54f6d1ca1c5df16019dfcff1d8f/pkg/v1/providers/ytt/02_addons/cni/antrea/antrea_addon_data.lib.yaml#L58) ( for vsphere only). Also, set the following 2 variables trafficEncapMode: "noEncap" noSNAT: true
NSXT_POD_ROUTING_ENABLED can be fetched from cluster.Spec.Topology.Variables and should be able to use as “tkg.tanzu.vmware.com/nsxt_pod_routing_enabled”. I saw some variables in excel sheet for cluster class are using this pattern => change to lower case have prefix as “tkg.tanzu.vmware.com/“ I have pinged @lzhan for confirmation.
@vijaykatam, some updates:
Based on discussion with @tvs and @sidharthsurana cluster variables should be limited to topology and self contained with cluster and provider objects.
Discussion with @lubronzhan and doc updated
I updated description to match latest requirement. This is being taken care in https://github.com/vmware-tanzu/tanzu-framework/pull/1881/files
Good catch! Thanks Does that mean during the cluster/tkr upgrade process, GCM should also be responsible for updating the AntreaConfig to new version? So the GCM should watch the TKR associated with the cluster.
This will be addressed by https://github.com/vmware-tanzu/tanzu-framework/pull/1881
AntreaConfig will be customized and pre-created when using routable pod feature. ClusterBootstrapController should be able to handle if a config already exists and only set ownerReferences.
Done criteria: Env test demonstrating a pre-created AntreaConfig is updated with ownerReferences