As a vSphere administrator, you can create custom VM classes for VMs in a vSphere Namespace. After you create a VM class, you can edit its parameters. You can also edit default VM classes that vSphere with Tanzu offers. If you no longer need an existing VM class, you can delete it from your environment.
Caution: If you scale out a
Tanzu Kubernetes cluster after editing a VM class used by that cluster, new cluster nodes use the updated class definition, but existing cluster nodes continue to use the initial class definition, resulting in a mismatch. Both control plane and worker nodes can be scaled. For information about scaling,
Scale a Tanzu Kubernetes Cluster Using the Tanzu Kubernetes Grid Service v1alpha1 API.
When you delete a VM class, it is removed from all associated namespaces. DevOps users can no longer self-service VMs using this VM class. VMs that have already been created with this VM class are not affected.
Prerequisites
- Verify that you have at least one VM class. See Create a VM Class in vSphere with Tanzu.
- Required privileges:
Procedure
- In the vSphere Client, display available VM classes.
- From the vSphere Client home menu, select Workload Management.
- Click the Services tab and click the VM Service pane.
- On the VM Service page, click VM Classes.
All default or user-created VM classes appear under Available VM Classes.
- Edit or delete an existing VM class.
Option Description Edit a VM class - In the selected VM class pane, click Manage and click Edit.
- Modify the VM class parameters. See Attributes of VM Classes in vSphere with Tanzu.
Note: You cannot change the name of the VM class.
Delete a VM class - In the selected VM class pane, click Manage and click Delete.
- Confirm that you want to delete the VM class.
What to do next
To make a VM class available to DevOps engineers, associate the VM class with a namespace. The association of the VM class occurs on a per namespace level. See Associate a VM Class with a Namespace in vSphere with Tanzu.