Check out the prerequisites for enabling vSphere with Tanzu in your vSphere environment. To run container-based workloads natively on vSphere, you enable Workload Management on a vSphere cluster. The result is a Kubernetes management cluster known as a Supervisor Cluster where you run vSphere Pods, provision Tanzu Kubernetes clusters, and VMs.
Create and Configure a vSphere Cluster
A vSphere cluster is a collection of ESXi hosts managed by a vCenter Server. The Supervisor Cluster runs on a vSphere cluster.
Before you can enable Workload Management, you need a vSphere cluster with at least 3 ESXi hosts. If you are using vSAN you need a minimum of 4 ESXi hosts. See Creating and Configuring Clusters.
You must configure the vSphere cluster with high-availability (HA) enabled. See Creating and Using vSphere HA Clusters.
You must configure the vSphere cluster with the Distributed Resource Scheduler (DRS) enabled. In addition, DRS automation must be set to Fully Automated mode. See Creating a DRS Cluster.
The vSphere cluster must use shared storage such as vSAN. Shared storage is required for vSphere HA, DRS, and for storing persistent container volumes. See Creating a vSAN Cluster.
Lastly, the user who enables Workload Management must have the Modify cluster-wide configuration privilege on the vSphere cluster that will host the Supervisor Cluster.
Choose and Configure the Networking Stack
To enable Workload Management, you must configure the networking to be used for the Supervisor Cluster. You have two options: NSX-T Data Center or vSphere Distributed Switch (vDS) networking with a load balancer. You can configure the NSX Advanced Load Balancer or the HAProxy load balancer.
|Functionality||NSX-T Networking||vDS Networking|
|Tanzu Kubernetes clusters||Yes||Yes|
|Embedded Harbor Registry||Yes||No|
|Load Balancing||Yes||Yes, by installing and configuring the NSX Advanced Load Balancer or the HAProxy load balancer.|
- Review the system requirements and topologies for NSX-T networking. See System Requirements for Setting Up vSphere with Tanzu with NSX-T Data Center.
- Install and configure NSX-T Data Center for vSphere with Tanzu. See Install and Configure NSX-T Data Center for vSphere with Tanzu.
- Review the NSX Advanced Load Balancer requirements. See System Requirements for Setting Up vSphere with Tanzu with vSphere Networking and NSX Advanced Load Balancer.
- Create a vSphere Distributed Switch (vDS) and add all ESXi hosts from the cluster to the vDS and create port groups for Workload Networks. See Create a vSphere Distributed Switch for a Supervisor Cluster for Use with NSX Advanced Load Balancer.
- Deploy and configure the NSX Advanced Load Balancer. See Deploy the Controller.
- Review the system requirements and network topologies for vSphere networking with an external load balancer. SeeSystem Requirements for Setting Up vSphere with Tanzu with vSphere Networking and and HA Proxy Load Balancer and Topologies for Deploying the HAProxy Load Balancer.
- Create a vSphere Distributed Switch (vDS) and add all ESXi hosts from the cluster to the vDS and create port groups for Workload Networks. SeeCreate a vSphere Distributed Switch for a Supervisor Cluster for Use with HAProxy Load Balancer.
- Install and configure HA Proxy load balancer instance that is routable to the vSphere Distributed Switch that is connected to the hosts from the vSphere cluster. The HAProxy load balancer supports the network connectivity to workloads from client networks and to load balance traffic between Tanzu Kubernetes clusters. SeeInstall and Configure the HAProxy Load Balancer.
Create Storage Policy
You must create storage policies that will determine the datastore placement of the Kubernetes control plane VMs, containers, and images. You can create storage policies associated with different storage classes.
Before enabling Workload Management, create a storage policy for the placement of Kubernetes control plane VMs. See Create Storage Policies for vSphere with Tanzu.
Create a Content Library
To provision Tanzu Kubernetes clusters and VMs, you need a Content Library created in the vCenter Server that manages the vSphere cluster where the Supervisor Cluster runs.
The Content Library provides the system with the distributions of Tanzu Kubernetes releases in the form of OVA templates. When you provision a Tanzu Kubernetes cluster, the OVA template for the selected version is used to create the Kubernetes cluster nodes.
You can create a Subscribed Content Library to automatically pull the latest released images, or you can create a Local Content Library and manually upload the images, which may be required for air-gapped provisioning of Tanzu Kubernetes clusters.
Watch vSphere with Tanzu Demos
Although not a hard requirement, before you embark it may be helpful to watch some demonstrations of vSphere with Tanzu, including setting up the vSphere environment in preparation for deploying the Supervisor Cluster, enabling Workload Management, and provisioning Tanzu Kubernetes clusters. If this sounds useful, check out the series of vSphere with Tanzu Deep Dive videos on the VMware vSphere channel. You can also check the vSphere Tanzu Quick Bytes series of short videos for configuring Workload Management with vDS networking and HA Proxy Laod Balancer.