From e016e10bf8e86e8c6e4aa9a8e29c98c5346661c2 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 16 Jul 2021 16:27:34 +0200 Subject: [PATCH] Add alpine based pvc example --- generic/alpine-pvc-block.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 generic/alpine-pvc-block.yaml diff --git a/generic/alpine-pvc-block.yaml b/generic/alpine-pvc-block.yaml new file mode 100644 index 0000000..bd0b7ce --- /dev/null +++ b/generic/alpine-pvc-block.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Pod +metadata: + name: alpine-sleep +spec: + containers: + - name: busybox + image: alpine:3.14 + args: + - sleep + - "1000000" + volumeMounts: + - mountPath: /data + name: alpine-data + volumes: + - name: alpine-data + persistentVolumeClaim: + claimName: alpine-data-rbd + +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: alpine-data-rbd +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + storageClassName: rook-ceph-block