From c137af57f353120a5838c090bcf046aeca3b29c3 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 11 Apr 2022 10:03:06 +0200 Subject: [PATCH] e2e: add RWOP examples for NFS-provisioning Signed-off-by: Niels de Vos --- examples/nfs/pod-rwop.yaml | 17 +++++++++++++++++ examples/nfs/pvc-rwop.yaml | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 examples/nfs/pod-rwop.yaml create mode 100644 examples/nfs/pvc-rwop.yaml diff --git a/examples/nfs/pod-rwop.yaml b/examples/nfs/pod-rwop.yaml new file mode 100644 index 000000000..b5b7fb2d1 --- /dev/null +++ b/examples/nfs/pod-rwop.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: csi-nfs-demo-rwop-pod +spec: + containers: + - name: web-server + image: docker.io/library/nginx:latest + volumeMounts: + - name: mypvc + mountPath: /var/lib/www + volumes: + - name: mypvc + persistentVolumeClaim: + claimName: csi-nfs-rwop-pvc + readOnly: false diff --git a/examples/nfs/pvc-rwop.yaml b/examples/nfs/pvc-rwop.yaml new file mode 100644 index 000000000..643276beb --- /dev/null +++ b/examples/nfs/pvc-rwop.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: csi-nfs-rwop-pvc +spec: + accessModes: + - ReadWriteOncePod + resources: + requests: + storage: 1Gi + storageClassName: csi-nfs-sc