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