This article describes configuring of a vSphere Namespace to use a dedicated network subnet instead of the default network inherited from the Supervisor.
VMware vSphere Kubernetes Service
The requirement is to use a dedicated network subnet instead of the default network inherited from the Supervisor.
To assign a dedicated subnet to a vSphere namespace, utilize the "Override Supervisor Network Settings" feature by following one of below methods.
Method 1: vSphere Client (UI)
Method 2: vCenter dcli (Workaround for vCenter 9.0) In vCenter 9.0, when creating a new namespace by overriding the Supervisor network, the Tier 0 gateway is not seen in the vCenter UI. Use the dcli tool from the vCenter shell:
dcli> com vmware vcenter namespaces instances createv2 --namespace <namespace_name> --description "<Description>" --supervisor <Supervisor_ID> --namespace-network-network-nsx-tier0-gateway <T0_Gateway> --namespace-network-network-provider NSXT_CONTAINER_PLUGIN --namespace-network-network-routed-mode true --namespace-network-network-load-balancer-size SMALL --namespace-network-network-ingress-cidrs '[{"address": "X.X.X.X", "prefix":27}]' --namespace-network-network-subnet-prefix-length 28 --namespace-network-network-namespace-network-cidrs '[{"address": "X.X.X.X", "prefix": 27}]' --zones '[{"name":"<Zone_name>"}]'