This commit adds example yamls for block volume mode. Signed-off-by: Rakshith R <rar@redhat.com>
18 lines
362 B
YAML
18 lines
362 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: csirbd-block-demo-pod
|
|
spec:
|
|
containers:
|
|
- name: centos
|
|
image: quay.io/centos/centos:latest
|
|
command: ["/bin/sleep", "infinity"]
|
|
volumeDevices:
|
|
- name: mypvc
|
|
devicePath: /dev/xvda
|
|
volumes:
|
|
- name: mypvc
|
|
persistentVolumeClaim:
|
|
claimName: raw-block-rbd-pvc
|