When trying to create a PVC you will see:
Warning ProvisioningFailed 32m (x2 over 32m) csi.vsphere.vmware.com_vsphere-csi-controller-#########-#####_########-####-####-####-############ failed to provision volume with StorageClass "vsphere-sc": rpc error: code = Internal desc = failed to get shared datastores in kubernetes cluster. Error: no shared datastores found for nodeVm: VirtualMachine:vm-###### [VirtualCenterHost: <vCenter-Name>, UUID: ########-####-####-####-############, Datacenter: Datacenter [Datacenter: Datacenter:<Datacenter-Name>, VirtualCenterHost: <vCenter-Name>]]
2.x
3.x
Validate if the multizone setup steps are correctly followed:
Infrastructure > CaaS Infrastructure > <Cluster-Name> > Add-OnsTags & Custom Attributes
If the tags are good on both sides the PVC should get created successfully.
Note: If this is not a multizone setup you can refer to this kb article for fix TCA Error no shared datastores found for nodeVM VirtualMachine vm