deploy: add nfs pvc-clone & pod-clone example yaml

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R 2022-05-16 12:55:08 +05:30 committed by mergify[bot]
parent 894c20f792
commit 0ddfdc5b69
2 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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