diff --git a/examples/nfs/pod.yaml b/examples/nfs/pod.yaml new file mode 100644 index 000000000..9c1217408 --- /dev/null +++ b/examples/nfs/pod.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: cephcsi-nfs-demo-pod +spec: + containers: + - name: web-server + image: docker.io/library/nginx:latest + volumeMounts: + - name: mypvc + mountPath: /var/lib/www + volumes: + - name: mypvc + persistentVolumeClaim: + claimName: cephcsi-nfs-pvc + readOnly: false diff --git a/examples/nfs/pvc.yaml b/examples/nfs/pvc.yaml new file mode 100644 index 000000000..8f4fca12a --- /dev/null +++ b/examples/nfs/pvc.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: cephcsi-nfs-pvc +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi + storageClassName: csi-nfs-sc