add notes for csi storage/cloning
This commit is contained in:
parent
1dbeeec338
commit
5e02d5f5d0
3 changed files with 33 additions and 0 deletions
5
csi-storage/README.md
Normal file
5
csi-storage/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Testing whether we can clone/copy existing PVCs
|
||||||
|
|
||||||
|
## steps
|
||||||
|
|
||||||
|
* kubectl apply -f pvc1.yaml
|
13
csi-storage/pvc1.yaml
Normal file
13
csi-storage/pvc1.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: pvc1
|
||||||
|
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: rook-ceph-block-hdd
|
15
csi-storage/pvc2.yaml
Normal file
15
csi-storage/pvc2.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: clone-of-pvc-1
|
||||||
|
namespace: myns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: cloning
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
dataSource:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: pvc1
|
Loading…
Reference in a new issue