add notes for csi storage/cloning

This commit is contained in:
Nico Schottelius 2024-01-07 19:27:11 +01:00
parent 1dbeeec338
commit 5e02d5f5d0
3 changed files with 33 additions and 0 deletions

5
csi-storage/README.md Normal file
View 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
View 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
View 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