Stateful applications, for example databases, save data between sessions and require persistent volumes to store the data. With vSphere IaaS control plane, you can dynamically provision a persistent volume for your application.
In the vSphere environment, the persistent volume objects are backed by virtual disks that reside on datastores. Datastores are represented by storage policies. After the vSphere administrator creates a storage policy, for example gold, and assigns it to a namespace in a Supervisor, the storage policy appears as a matching Kubernetes storage class in the vSphere Namespace and any available TKG clusters.
As a DevOps engineer, you can use the storage class in your persistent volume claim specifications. You can then deploy an application that uses storage from the persistent volume claim. In this example, the persistent volume for the application is created dynamically.
Prerequisites
Make sure that your vSphere administrator has created an appropriate storage policy and assigned the policy to the namespace.
Procedure
Results
The pod that you configured uses persistent storage described in the persistent volume claim.
What to do next
To monitor health status of the persistent volume, see Monitor Volume Health in a vSphere Namespace or TKG Cluster. To review and monitor the persistent volume in the vSphere Client, see Monitor and Manage Persistent Volumes.