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