csi-driver-nfs/deploy/example
andyzhangx 67218855ab test: refactor verify example test
fix image
2021-01-18 14:31:26 +00:00
..
nfs-provisioner doc: format yaml files 2020-12-26 14:06:58 +00:00
README.md doc: improve documentations following SMB driver repo 2020-11-20 21:10:46 +00:00
deployment.yaml test: refactor verify example test 2021-01-18 14:31:26 +00:00
pv-nfs-csi.yaml doc: improve documentations following SMB driver repo 2020-11-20 21:10:46 +00:00
pvc-nfs-csi-dynamic.yaml doc: format yaml files 2020-12-26 14:06:58 +00:00
pvc-nfs-csi-static.yaml doc: improve documentations following SMB driver repo 2020-11-20 21:10:46 +00:00
statefulset.yaml doc: format yaml files 2020-12-26 14:06:58 +00:00
storageclass-nfs.yaml doc: change master branch image address 2020-12-27 03:21:44 +00:00

README.md

CSI driver example

After the NFS CSI Driver is deployed in your cluster, you can follow this documentation to quickly deploy some examples.

You can use NFS CSI Driver to provision Persistent Volumes statically or dynamically. Please read Kubernetes Persistent Volumes documentation for more information about Static and Dynamic provisioning.

Please refer to driver parameters for more detailed usage.

Prerequisite

Storage Class Usage (Dynamic Provisioning)

  • Follow the folling command to create a StorageClass, and then PersistentVolume and PersistentVolumeClaim dynamically.
# create StorageClass
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/storageclass-nfs.yaml

# create PVC
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/pvc-nfs-csi-dynamic.yaml

PV/PVC Usage (Static Provisioning)

  • Follow the folling command to create PersistentVolume and PersistentVolumeClaim statically.
# create PV
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/pv-nfs-csi.yaml

# create PVC
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/pvc-nfs-csi-static.yaml