From 5e02d5f5d04c12f577d4cfa3fda983ca0e2dd5c0 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 7 Jan 2024 19:27:11 +0100 Subject: [PATCH] add notes for csi storage/cloning --- csi-storage/README.md | 5 +++++ csi-storage/pvc1.yaml | 13 +++++++++++++ csi-storage/pvc2.yaml | 15 +++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 csi-storage/README.md create mode 100644 csi-storage/pvc1.yaml create mode 100644 csi-storage/pvc2.yaml diff --git a/csi-storage/README.md b/csi-storage/README.md new file mode 100644 index 0000000..774badc --- /dev/null +++ b/csi-storage/README.md @@ -0,0 +1,5 @@ +Testing whether we can clone/copy existing PVCs + +## steps + +* kubectl apply -f pvc1.yaml diff --git a/csi-storage/pvc1.yaml b/csi-storage/pvc1.yaml new file mode 100644 index 0000000..613e66b --- /dev/null +++ b/csi-storage/pvc1.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: pvc1 + +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + storageClassName: rook-ceph-block-hdd diff --git a/csi-storage/pvc2.yaml b/csi-storage/pvc2.yaml new file mode 100644 index 0000000..e326468 --- /dev/null +++ b/csi-storage/pvc2.yaml @@ -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