Add alpine based pvc example
This commit is contained in:
parent
db6345ce01
commit
e016e10bf8
1 changed files with 31 additions and 0 deletions
31
generic/alpine-pvc-block.yaml
Normal file
31
generic/alpine-pvc-block.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue