A vSphere storage policy that you assign to a vSphere Namespace is converted to a Kubernetes storage class. You use this storage class to control how TKG cluster nodes and persistent volumes are placed within vSphere datastores. A vSphere storage policy for vSphere Zones needs to be compatible with storage across all vSphere clusters comprising the Zonal topology.

Define a vSphere Storage Policy for a Single Zone Supervisor

Complete the steps to create a storage class for a single zone Supervisor.
  1. Using the vSphere Client, select Policies and Profiles.
  2. Select VM Storage Policies > Create.
  3. Select the vCenter Server.
  4. Name the storage policy descriptively, such as TKG2-cluster-storage-class.

    The same name is used for the storage class that is created.

  5. For storage Policy Structure, select Enable rules for "VMFS" storage.
  6. For VMFS rules, select Conserve space when possible.
  7. For Storage compatibility, review and click Next.
  8. Click Finish to complete the storage policy creation.

To assign the storage policy to a vSphere Namespace, see Configure a vSphere Namespace for TKG Service Clusters.

Define a vSphere Storage Policy for a Three Zone Supervisor

If you are using Supervisor deployed across three zones, complete the same steps as described above, with the following additions:
  • For storage Policy Structure, select Storage topology > Enable consumption domain.
  • For Consumption domain, specify Zonal as the storage policy type.
Figure 1. Zonal Storage Class 1 of 2
vSphere Storage Policy for Zones 1 of 2
Figure 2. Zonal Storage Class 2 of 2
vSphere Storage Policy for Zones 2 of 2

Advanced vSphere Storage Policy Creation

Depending on your environment, you may need to have additional settings for either vSAN or VVols. If you are using VMFS and NFS, the vSphere storage policy will include tags.

To create more advanced storage policy types, such as tagged-based storage, that can be applied to a vSphere Namespace for use with TKG clusters, see Installing and Configuring vSphere IaaS Control Plane.