-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does rexray/csi-nfs work with kubernetes? #15
Comments
I notice that i'm trying to utilize a docker volume on kubernetes. So thats not going to work. I guess I'd like to know if its possible to create a volume using the rexray csi-nfs plugin. That volume is basically a nfs share that I exported from a remote server. I want to be able to mount that share to the pod/containers that I launch using kubernetes. I know i can specify the server name and path in my yaml file to make it work, but was wondering how i could do this with the rexray csi-nfs plugin.
I was unsuccessful in trying to get things to work using the examples in the rexray website. |
Thoughts @codenrhoden ? |
These were the website i was referring to. Seems like rexray examples are only for Dockers. I haven't seen anything out there that shows the csi-nfs plugin work for kubernetes. The only way i got it to work was was creating a storageclass/persistantvolume with the above information. Thanks for any help or guidance on this. http://rexray.readthedocs.io/en/v0.10.1/user-guide/csi/#configuration |
Does anyone know of a csi-nfs plugin that works for kubernetes? |
i was able to create the volume with docker. But now i want to use that volume in a kubernetes cluster.
[root@csi-nfs-node1 docker]# docker volume create -d rexray/csi-nfs -o host=xxxxxx -o export=/data csi-nfs-volume
[root@csi-nfs-node1 docker]# docker volume ls
DRIVER VOLUME NAME
rexray/csi-nfs:latest csi-nfs-volume
I created both a pv and pvc. I notice that kubernetes does not like the driver name rexray/csi-nfs, so i removed rexray.
When i go to launch my nginx pod, it can't mount the volume. Wondering if anyone else tried it.
Thanks..
apiVersion: v1
kind: PersistentVolume
metadata:
creationTimestamp: null
labels:
io.kompose.service: csi-data-volume
name: csi-data-volume
spec:
storageClassName: manual
capacity:
storage: 100Mi
accessModes:
csi:
driver: csi-vfs
volumeHandle: csi-volume
apiVersion: v1
kind: PersistentVolume
metadata:
creationTimestamp: null
labels:
io.kompose.service: csi-data-volume
name: csi-data-volume
spec:
storageClassName: manual
capacity:
storage: 100Mi
accessModes:
csi:
driver: csi-vfs
volumeHandle: csi-nfs-volume
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
image: nginx:1.7.9
ports:
volumeMounts:
name: data-volume
volumes:
persistentVolumeClaim:
claimName: csi-nfs-data-claim
status: {}
The text was updated successfully, but these errors were encountered: