mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-25 06:20:24 +00:00
add examples for raw block pvc
and pod to mount it Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
fbc189ff66
commit
ef74050af2
18
examples/rbd/raw-block-pod.yaml
Normal file
18
examples/rbd/raw-block-pod.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: pod-with-raw-block-volume
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: fc-container
|
||||||
|
image: fedora:26
|
||||||
|
command: ["/bin/sh", "-c"]
|
||||||
|
args: ["tail -f /dev/null"]
|
||||||
|
volumeDevices:
|
||||||
|
- name: data
|
||||||
|
devicePath: /dev/xvda
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: raw-block-pvc
|
13
examples/rbd/raw-block-pvc.yaml
Normal file
13
examples/rbd/raw-block-pvc.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: raw-block-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Block
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: csi-rbd
|
Loading…
Reference in New Issue
Block a user