Before you can use the Tanzu Kubernetes Grid CLI or installer interface to deploy the management cluster, you must prepare your vSphere environment. You must make sure that vSphere meets the general requirements and import the base OS templates from which Tanzu Kubernetes Grid creates node VMs.
You have a vSphere 6.7u3 instance with an Enterprise Plus license.
NOTE: Deployment to vSphere 7.0 instances on which the vSphere with Kubernetes feature is not enabled is possible but is not supported.
NOTE: If you intend to deploy multiple Tanzu Kubernetes Grid instances to this vSphere instance, you must create a dedicated resource pool, VM folder, and network for each instance that you deploy.
In order for Tanzu Kubernetes Grid VMs to run tasks in vSphere, you must provide the public key part of an SSH key pair to Tanzu Kubernetes Grid when you deploy the management cluster. You can use a tool such as
ssh-keygen to generate a key pair.
On the machine on which you will run the Tanzu Kubernetes Grid CLI, run the following
ssh-keygen -t rsa -b 4096 -C "email@example.com"
Enter file in which to save the key (/root/.ssh/id_rsa):press Enter to accept the default.
Add the private key to the SSH agent running on your machine, and enter the password you created in the previous step.
.ssh/id_rsa.pubin a text editor so that you can easily copy and paste it when you deploy the management cluster.
Before you can deploy a Tanzu Kubernetes Grid management cluster or Tanzu Kubernetes clusters to vSphere, you must provide a base OS image template to vSphere. Tanzu Kubernetes Grid creates the management cluster and Tanzu Kubernetes cluster node VMs from this template. Tanzu Kubernetes Grid provides a base OS image template in OVA format for you to import into vSphere. After importing the OVA, you must convert the resulting VM into a VM template.
Download both of the Tanzu Kubernetes Grid OVA files:
photon-3-v1.17.3_vmware.2.ovafile on your local machine.
Follow the installer prompts to deploy a VM from the OVA temaplate.
Click Finish to deploy the VM.
Right-click the VM and select Template > Convert to Template.
You must also provide an API server load balancer to vSphere as a VM template. The API server load balancer is provided as an OVA file,
The procedure to upload the API server load balancer OVA to vSphere is identical to that for base OS image OVA files. Import the
photon-3-capv-haproxy-v0.6.3_vmware.1.ova file into vSphere, and convert the resulting VM to a VM template.
Your environment is now ready for you to deploy the Tanzu Kubernetes Grid management cluster to vSphere.
If you are installing Tanzu Kubernetes Grid in an internet-restricted environment, see Deploy Tanzu Kubernetes Grid to vSphere in an Air-Gapped Environment for the additional steps to perform.