If you want to use the vSphere networking stack for Kubernetes workloads, install the HAProxy control plane VM to provide load balancing services to Tanzu Kubernetes clusters.
Prerequisites
- Verify that your environment meets the compute and networking requirements for deploying HA Proxy. See System Requirements for Setting Up vSphere with Tanzu with vSphere Networking and HAProxy Load Balancer.
- Verify that you have a Management network on a vSphere standard or distributed switch where to deploy the HAProxy load balancer. The Supervisor Cluster communicates with the HAProxy load balancer on that Management network.
- Create a vSphere Distributed Switch and port groups for Workload Networks. The HAProxy load balancer communicates with Supervisor Cluster and Tanzu Kubernetes cluster nodes over the Workload Networks. See Create a vSphere Distributed Switch for a Supervisor Cluster for Use with HAProxy Load Balancer. For information on Workload Networks, see Workload Networks on the Supervisor Cluster
- Download the latest version of the VMware HAProxy OVA file from the VMware-HAProxy site.
- Select a topology for deploying the HAProxy load balancer and Workload Networks on the Supervisor Cluster. See Topologies for Deploying the HAProxy Load Balancer
It may be helpful to view a demonstration of how to use vSphere with Tanzu with vDS networking and HAProxy. Check out the video Getting Started Using vSphere with Tanzu.