Now upload them as a new VM, then mark each as a template:
For each OVA deploy it through the wizard, nothing much required here besides choosing a location. Ideally put it on the same array where you plan to deploy the nodes from it (take advantage of XCOPY or vVol clone if you are running storage that supports that of course).
Let the process complete.
Now convert the haproxy VM and kube VM to templates:
I also have a third VM (linux-mgmt), which will be my management VM (Ubuntu server) for running deployment operations.
In that VM, I will create a new SSH key pair for use with connectivity to vCenter:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh-keygen -t rsa -b 4096 -C "cody@purecloud.com"
ssh-keygen -t rsa -b 4096 -C "cody@purecloud.com"
ssh-keygen -t rsa -b 4096 -C "cody@purecloud.com"
Now add that key to the local SSH agent of your management host. The following works for me on Ubuntu, the direction instructions in the official doc throws an error:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh-agent /bin/sh
ssh-agent /bin/sh
ssh-agent /bin/sh
then
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa
I plan on deploying from the CLI, so I need to pre-install a few things. First the TKG CLI. Download it from the same place as the OVAs above and copy it to your mgmt host.
Unzip it:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo gunzip tkg-linux-amd64-v1.1.2-vmware.1.gz
sudo gunzip tkg-linux-amd64-v1.1.2-vmware.1.gz
sudo gunzip tkg-linux-amd64-v1.1.2-vmware.1.gz
Then move the file (while renaming it) and then make it executable:
If you are on Ubuntu, makes sure you run it with sudo, otherwise you get cryptic errors like “the docker service is not started”. Also make sure you don’t use uppercase if you choose a custom cluster name–it will fail the regex checks.
Oops. Hey–TKG! It is vVol not vvol…
You will start to see the VMs appear:
And done!
Management cluster is done!
In the next post we will configure the VMware CSI driver (Cloud Native Storage).
6 Replies to “Deploying VMware Tanzu Kubernetes Grid with Pure Storage vVols Part I: Deploy TKG on vSphere”
Hi Cody, quick query. is it supported by VMware to use VVOL datastore as Cloud Native Storage (CNS) for TKG deployments running on vSphere 6.7 U3?
Thanks for the response Cody. I was a bit confused because this VMware blog https://blogs.vmware.com/virtualblocks/2020/06/17/using-vvols-with-cns/ says “With vSphere 7.0 and the CSI 2.0 driver for vSphere we have introduced a much sought-after feature: support for vVols as a storage mechanism for Cloud Native Storage”.
So i chatted with VMware PM on this. So it should just work, it was just not “qualified” for 6.7. I am pressing on them to do so as 6.7 will still be around for some time. Stay tuned
Hello Cody. First thaks for this tutorial, please i need help, i have done all th steps of your tutorial but i hav e a problem with the cert-manager.
My deployment stuck due cert manager error. I post my result
Setting up management cluster…
Validating configuration…
Using infrastructure provider vsphere:v0.6.5
Generating cluster configuration…
Setting up bootstrapper…
Bootstrapper created. Kubeconfig: /root/.kube-tkg/tmp/config_PxoLoR5j
Installing providers on bootstrapper…
Fetching providers
Installing cert-manager
Waiting for cert-manager to be available… (here is the problem please help me because i dont find info)
Hi Cody, quick query. is it supported by VMware to use VVOL datastore as Cloud Native Storage (CNS) for TKG deployments running on vSphere 6.7 U3?
Yes it is! This series will be about it deploying together
Thanks for the response Cody. I was a bit confused because this VMware blog https://blogs.vmware.com/virtualblocks/2020/06/17/using-vvols-with-cns/ says “With vSphere 7.0 and the CSI 2.0 driver for vSphere we have introduced a much sought-after feature: support for vVols as a storage mechanism for Cloud Native Storage”.
So i chatted with VMware PM on this. So it should just work, it was just not “qualified” for 6.7. I am pressing on them to do so as 6.7 will still be around for some time. Stay tuned
Hello Cody. First thaks for this tutorial, please i need help, i have done all th steps of your tutorial but i hav e a problem with the cert-manager.
My deployment stuck due cert manager error. I post my result
Setting up management cluster…
Validating configuration…
Using infrastructure provider vsphere:v0.6.5
Generating cluster configuration…
Setting up bootstrapper…
Bootstrapper created. Kubeconfig: /root/.kube-tkg/tmp/config_PxoLoR5j
Installing providers on bootstrapper…
Fetching providers
Installing cert-manager
Waiting for cert-manager to be available… (here is the problem please help me because i dont find info)
Hello Daniel- this is not an error I’m familiar with. I wonder if this KB shows the same issue you have in logging?
https://kb.vmware.com/s/article/82334