[virt] Add pod with a raw block device
That is usable by qemu
This commit is contained in:
parent
60f3569140
commit
927e3a1f5c
1 changed files with 31 additions and 0 deletions
31
ungleich-virtualisation/alpine-pvc-block-block.yaml
Normal file
31
ungleich-virtualisation/alpine-pvc-block-block.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: alpine-sleep-block2
|
||||
spec:
|
||||
containers:
|
||||
- name: busybox
|
||||
image: alpine:3.14
|
||||
args:
|
||||
- sleep
|
||||
- "1000000"
|
||||
volumeDevices:
|
||||
- name: alpine-data2
|
||||
devicePath: /dev/xvda
|
||||
volumes:
|
||||
- name: alpine-data2
|
||||
persistentVolumeClaim:
|
||||
claimName: alpine-data-rbd-block2
|
||||
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: alpine-data-rbd-block2
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Block
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
Loading…
Reference in a new issue