kubernetes-sigs / vsphere-csi-driver

vSphere storage Container Storage Interface (CSI) plugin
https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/index.html
Apache License 2.0
296 stars 179 forks source link

Cannot Provision PVC with External NFS #2512

Closed opschronicle closed 1 year ago

opschronicle commented 1 year ago

/kind bug

What happened: I have Kubernetes clusters operating on VMware Cloud, hosted on AWS. The cluster is equipped with vSphere CSI drivers as a default configuration. Currently, I'm working with an external NFS storage solution that's accessible from my cluster. Despite my attempts to leverage the vSphere CSI driver to establish a connection with PV with this NFS device, I'm encountering issues. The YAML snippet I utilized for creating the storage class is provided below.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: nfs-vsphere
provisioner: csi.vsphere.vmware.com
parameters:
  storagePolicyName: optional
  server: 10.110.75.20
  path: /myvol
reclaimPolicy: Delete
volumeBindingMode: Immediate

The PV is not bound and it is in pending state. The error I see in PVC is

waiting for a volume to be created, either by external provisioner "csi.vsphere.vmware.com" or manually created by system administrator

What you expected to happen:

I expect the PV to be bound and I should be able to create PVCs

How to reproduce it (as minimally and precisely as possible): Use the above storage class and try .

Anything else we need to know?:

Environment:

chethanv28 commented 1 year ago

@pabrahamusa This is not supported by vSphere CSI Driver. You can use External NFS CSI Driver in the storage class

provisioner: <External NFS CSI Driver>