I can create a new PVC, it works without any issue:
kubectl describe pvc test2 -n test
Name: test2
Namespace: test
StorageClass: glusterfs-csi
Status: Bound
Volume: pvc-46e094b7-2ddf-11e9-a318-002590927952
Labels: cattle.io/creator=norman
Annotations: field.cattle.io/creatorId=u-jtvds
pv.kubernetes.io/bind-completed=yes
pv.kubernetes.io/bound-by-controller=yes
volume.beta.kubernetes.io/storage-provisioner=org.gluster.glusterfs
Capacity: 1Gi
Access Modes: RWX
Events: <none>
But when i want to use it on a container i get this issue:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 14m (x27 over 1h) kubelet, myhostname Unable to mount volumes for pod "test-56b7889987-wklxs_test(ec1d4cd0-2de6-11e9-877e-00259092799a)": timeout expired waiting for volumes to attach or mount for pod "test"/"test-56b7889987-wklxs". list of unmounted volumes=[test]. list of unattached volumes=[test default-token-6k4fj]
Warning FailedMount 3m (x43 over 1h) kubelet, myhostname MountVolume.MountDevice failed for volume "pvc-46e094b7-2ddf-11e9-a318-002590927952" : driver name org.gluster.glusterfs not found in the list of registered CSI drivers
I use the kubernetes cluster under rancher.
Kubernets version is v1.12.3
I hope someone can help me.