This section details the virtual service shared IP address for VMware Cloud Director 10.4.0 and newer versions.

Prior to Kubernetes Cloud Provider for VMware Cloud Director 1.2.0 and VMware Cloud Director 10.4.0, each virtual service required a distinct IP address. Therefore, multiple internal IP addresses were used, and DNAT rules were necessary to map the internal IP addresses to external IP addresses.

As of Kubernetes Cloud Provider for VMware Cloud Director 1.2.0, the enableVirtualServiceSharedIP feature allows utilizing a feature in VMware Cloud Director 10.4.0 and newer versions, in which you can create multiple virtual services with the same external IP address and different ports. This removes the need to create a DNAT rule, and preserves internal IP addresses. It is necessary to set enableVirtualServiceSharedIP to true in the configmap to use the following feature:
loadbalancer:
   enableVirtualServiceSharedIP: true
Note: If enableVirtualServiceSharedIP is set to true, and oneArm is not nil, the virtual services share an internal IP address instead of an external IP address. DNAT rules are used to map the shared internal IP address to an external IP address.