From 00d9fce4758974d0587404c6e65ce9d93531f698 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 17 Jan 2022 23:03:12 +0100 Subject: [PATCH] Add test case for rwx/block --- archive/v3/rook/rwx-block.yaml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 archive/v3/rook/rwx-block.yaml diff --git a/archive/v3/rook/rwx-block.yaml b/archive/v3/rook/rwx-block.yaml new file mode 100644 index 0000000..dc6a0ed --- /dev/null +++ b/archive/v3/rook/rwx-block.yaml @@ -0,0 +1,50 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: block-pvc +spec: + accessModes: + - ReadWriteMany + volumeMode: Block + resources: + requests: + storage: 1Gi + storageClassName: rook-ceph-block-ssd +--- +apiVersion: v1 +kind: Pod +metadata: + name: my-pod +spec: + containers: + - name: my-container + image: alpine:3.14 + command: ["/bin/sh", "-c"] + args: [ "tail -f /dev/null" ] + volumeDevices: + - devicePath: /dev/rbdblock + name: my-volume + imagePullPolicy: IfNotPresent + volumes: + - name: my-volume + persistentVolumeClaim: + claimName: block-pvc +--- +apiVersion: v1 +kind: Pod +metadata: + name: my-pod2 +spec: + containers: + - name: my-container + image: alpine:3.14 + command: ["/bin/sh", "-c"] + args: [ "tail -f /dev/null" ] + volumeDevices: + - devicePath: /dev/rbdblock + name: my-volume + imagePullPolicy: IfNotPresent + volumes: + - name: my-volume + persistentVolumeClaim: + claimName: block-pvc