ceph-csi/vendor/github.com/kubernetes-csi/drivers/pkg/flexadapter
2018-07-31 14:53:26 +02:00
..
examples/simplenfs-flexdriver vendor update for CSI 0.3.0 2018-07-31 14:53:26 +02:00
controllerserver.go vendor updates 2018-03-07 11:43:06 -05:00
driver-call.go vendor files 2018-01-10 13:42:26 -05:00
flexadapter.go vendor update for CSI 0.3.0 2018-07-31 14:53:26 +02:00
flexvolumedriver.go Updated vednor files 2018-02-15 08:50:31 -05:00
nodeserver.go vendor updates 2018-03-07 11:43:06 -05:00
README.md vendor update for CSI 0.3.0 2018-07-31 14:53:26 +02:00

CSI to Flexvolume adapter

Usage:

Start Flexvolume adapter for simple nfs flexvolume driver

$ sudo ./_output/flexadapter --endpoint tcp://127.0.0.1:10000 --drivername simplenfs --driverpath ./pkg/flexadapter/examples/simplenfs-flexdriver/driver/nfs --nodeid CSINode -v=5

Test using csc

Get csc tool from https://github.com/rexray/gocsi/tree/master/csc

Get plugin info

$ csc identity plugin-info --endpoint tcp://127.0.0.1:10000
"simplenfs"	"0.1.0"

NodePublish a volume

$ csc node publish --endpoint tcp://127.0.0.1:10000 --target-path /mnt/nfs --attrib server=a.b.c.d --attrib share=nfs_share nfstestvol
nfstestvol

NodeUnpublish a volume

$ csc node unpublish --endpoint tcp://127.0.0.1:10000 --target-path /mnt/nfs nfstestvol
nfstestvol

Get NodeID

$ csc node get-id --endpoint tcp://127.0.0.1:10000
CSINode