After a vSphere administrator creates a storage policy and assigns it to the vSphere Namespace, the storage policy appears as a matching Kubernetes storage class in the namespace and any available Tanzu Kubernetes clusters. As a DevOps engineer, you can verify that the storage class is available.
Your ability to run the commands depends on your permissions.
Prerequisites
Make sure that your vSphere administrator has created an appropriate storage policy and assigned the policy to the vSphere Namespace.
Procedure
- Use one of the following commands to verify that the storage classes are available.
- To check the amount of storage space available on the namespace, run the following command.
kubectl describe resourcequotas -namespace namespace
You get the output similar to the following.
Name: ns-my-namespace
Namespace: ns-my-namespace
Resource Used Hard
-------- ---- ----
requests.storage 0 200Gi