As a DevOps engineer, verify that the namespace you use for stateful services in the vSphere with Tanzu environment has appropriate storage classes. The storage classes can be vSAN Shared-Nothing-Architecture (SNA) and vSAN Direct.

The vSAN Data Persistence platform automatically creates these storage classes in the namespace after a vSphere administrator enables the stateful service. See Enable Stateful Services for vSphere with Tanzu.

They can also be assigned to the namespace by a vSphere administrator. See Create vSAN Direct Storage Policy and Create vSAN SNA Storage Policy

.

Procedure

  • Verify that the storage policies to be used with vSAN SNA and vSAN Direct are available in your namespace.
    # kubectl get sc
    NAME                       PROVISIONER              RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
    sample-vsan-direct-thick   csi.vsphere.vmware.com   Delete          WaitForFirstConsumer   true                   3m36s
    sample-vsan-sna-thick      csi.vsphere.vmware.com   Delete          WaitForFirstConsumer   true                   13m