Configure the vSphere Namespace where you plan to provision Tanzu Kubernetes clusters by associating the namespace with the content library for Tanzu Kubernetes releases and with the VM classes you want to use.
Prerequisites
Create a vSphere Namespace. See Create and Configure a vSphere Namespace.
Create a content library for hosting Tanzu Kubernetes releases. See Create, Secure, and Synchronize a Subscribed Content Library for Tanzu Kubernetes releases or Create, Secure, and Synchronize a Local Content Library for Tanzu Kubernetes releases.
Associate the Content Library with the vSphere Namespace
Associate Using the vSphere Inventory Path | Associate Using the Workload Management Path |
---|---|
|
|
Associate the VM Classes with the vSphere Namespace
vSphere with Tanzu provides several default virtual machine classes, and you can create your own. See Virtual Machine Classes for Tanzu Kubernetes Clusters.
To provision Tanzu Kubernetes clusters, you need to associate the virtual machine classes you want to use with each vSphere Namespace where you want to provision Tanzu Kubernetes clusters.
- Select .
- Select the Namespaces tab.
- Select the target vSphere Namespace where you plan to provision Tanzu Kubernetes clusters.
- Locate the VM Service tile.
- Click the Add VM Class link.
- Select the VM classes to add.
- To add the default VM classes, select the checkbox in the table header on page 1 of the list, navigate to page 2 and select the checkbox in the table header on that page. Verify that all classes are selected.
- To create a custom class, click Create New VM Class. See Create a VM Class in vSphere with Tanzu.
- Click OK to complete the operation.
- Confirm that the classes are added. The VM Service tile shows Manage VM Classes.
Verify the vSphere Namespace Configuration
- Install the Kubernetes CLI Tools for vSphere. See Download and Install the Kubernetes CLI Tools for vSphere.
- Log in to the Supervisor Cluster.
kubectl vsphere login --server IP-ADDRESS-SUPERVISOR-CLUSTER --vsphere-username VCENTER-SSO-USERNAME
- Switch context to the target vSphere Namespace.
kubectl config use-context SUPERVISOR-NAMESPACE
- List and describe the available Tanzu Kubernetes releases.
kubectl get tanzukubernetesreleases
kubectl describe tanzukubernetesreleases
- List the available virtual machine classes.
kubectl get virtualmachineclassbindings