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
- Using the vSphere Client, select Policies and Profiles.
- Select .
- Select the vCenter Server.
- Name the storage policy descriptively, such as TKG2-cluster-storage-class.
The same name is used for the storage class that is created.
- For storage Policy Structure, select Enable rules for "VMFS" storage.
- For VMFS rules, select Conserve space when possible.
- For Storage compatibility, review and click Next.
- 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
- For storage Policy Structure, select .
- For Consumption domain, specify Zonal as the storage policy type.
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.