The vSphere storage object that will back a Kubernetes containerized application needs to meet specific storage requirements. As a vSphere user, you create a VM storage policy based on the requirements provided to you by the Kubernetes user.
If you have multiple vCenter Server instances in your environment, create the VM storage policy on each instance. Use the same policy name across all instances.
- The Kubernetes user identifies the Kubernetes cluster where the stateful containerized application will be deployed.
- The Kubernetes user collects storage requirements for the containerized application and communicates them to the vSphere user.
- Required privileges: and .
- In the vSphere Client, open the Create VM Storage Policy wizard.
- Click .
- Under Policies and Profiles, click VM Storage Policies.
- Click Create VM Storage Policy.
- Enter the policy name and description, and click Next.
Option Action vCenter Server Select the vCenter Server instance. Name Enter the name of the storage policy, for example Space-Efficient. Description Enter the description of the storage policy.
- On the Policy structure page under Datastore-specific rules, select Enable rules for vSAN storage and click Next.
- On the vSAN page, define the policy rule set and click Next.
- On the Availability tab, define the Site disaster tolerance and Failures to tolerate.
- On the Advanced Policy Rules tab, define advanced policy rules, such as number of disk stripes per object and flash read cache reservation.
- On the Storage compatibility page, review the list of vSAN datastores that match this policy and click Next.
- On the Review and finish page, review the policy settings, and click Finish.
What to do next
You can now inform the Kubernetes user of the storage policy name. The VM storage policy you created will be used as a part of storage class definition for dynamic volume provisioning.