As described in google doc I enable the filestore csi driver in my cluster. It created automatically
differents storageclass.
kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
enterprise-multishare-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 2d10h
enterprise-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 2d10h
premium-rwo pd.csi.storage.gke.io Delete WaitForFirstConsumer true 59d
premium-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 2d10h
standard kubernetes.io/gce-pd Delete Immediate true 59d
standard-rwo (default) pd.csi.storage.gke.io Delete WaitForFirstConsumer true 59d
standard-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 2d10h
zonal-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 2d10h
I use one of this storageclass: standard-rwx to create a PVC
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nwapi-uploads
spec:
accessModes:
- ReadWriteMany
storageClassName: standard-rwx
resources:
requests:
storage: 10Gi
Then I create a pod who need this PVC
I see that a PV is created
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE
pvc-a02dcb94-0867-4dc1-aa09-b92108e66a63 1Ti RWX Delete Bound nwapi/nwapi-uploads standard-rwx <unset> 7h38m
but the pod is not able to use it I’ve got this event :
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 92s (x110 over 7h19m) kubelet MountVolume.MountDevice failed for volume "pvc-a02dcb94-0867-4dc1-aa09-b92108e66a63" : rpc error: code = DeadlineExceeded desc = context deadline exceeded
I don’t see any in logs that can explain this issue.
Even If I delete the pod and recreate it the result is the same.
Does some one has already use standard-rwx and solve this kind of trouble or have any idea about this topic?