mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 21:40:20 +00:00
deploy: add nfs pvc-clone & pod-clone example yaml
Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
894c20f792
commit
0ddfdc5b69
17
examples/nfs/pod-clone.yaml
Normal file
17
examples/nfs/pod-clone.yaml
Normal 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
|
15
examples/nfs/pvc-clone.yaml
Normal file
15
examples/nfs/pvc-clone.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user