While creating PVC from Tanzu on vSAN enabled cluster, it may report an error as below.
#
kubectl describe pvc tkg-cluster-pvc -n dummy-prod-namespace
---
reason: failed to provision volume with StorageClass "tanzu-storage-policy": rpc error: code = FailedPrecondition desc = no datastores found to create file volume, vsan file service may be disabled.
Normal ExternalProvisioning 115s (x103 over 27m) persistentvolume-controller Waiting for a volume to be created either by the external provisioner 'csi.vsphere.vmware.com' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
VMware vSAN 7.x
VMware vSAN 8.x
VMware Tanzu Kubernetes Grid (TKG)
The error is expected as vSAN file services is a prerequisite for the TKG cluster while using vSAN datastore to create volumes.
Refer the below documents.
Using vSAN File Service to Create ReadWriteMany Volumes in vSphere IaaS Control Plane
Using vSAN File Service to Create ReadWriteMany Volumes in Supervisor Environment
1. Navigate to the Workload Management > Supervisor > Configure > Storage> File Volume
2. Enable "Activate file volume support" using the toggle button.
Refer the article ReadWriteMany feature support on vSAN cluster and the screen below for reference: