csi-driver-nfs/deploy/example
andyzhangx 9b0aa0e203 doc: add nconnect mount option in nfs example 2022-03-18 07:39:44 +00:00
..
fsgroup Update README.md 2021-06-02 14:40:32 +08:00
nfs-provisioner fix links of install-csi-driver 2021-12-08 14:45:36 +08:00
README.md fix links of install-csi-driver 2021-12-08 14:45:36 +08:00
daemonset-nfs-ephemeral.yaml doc: add daemonset-nfs-ephemeral.yaml example 2021-07-05 02:56:08 +00:00
deployment.yaml test: refactor verify example test 2021-01-18 14:31:26 +00:00
nginx-pod-inline-volume.yaml feat: add mountOptions parameter for inline volume 2022-01-11 13:54:21 +00:00
pv-nfs-csi.yaml doc: add nconnect mount option in nfs example 2022-03-18 07:39:44 +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: add nconnect mount option in nfs example 2022-03-18 07:39: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 following 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 following 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

Deployment/Statefulset Usage

  • Follow the following command to create Deployment and Statefulset .
# create Deployment and Statefulset
git clone https://github.com/kubernetes-csi/csi-driver-nfs.git
cd csi-driver-nfs
./hack/verify-examples.sh