Skip to content

Commit

Permalink
csi: add pvc & pod yamls for block volume mode
Browse files Browse the repository at this point in the history
This commit adds example yamls for block
volume mode.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 53e2f8c)
  • Loading branch information
Rakshith-R authored and BlaineEXE committed Aug 7, 2024
1 parent 95e71f1 commit d1351d1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/examples/csi/rbd/raw-block-pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
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
13 changes: 13 additions & 0 deletions deploy/examples/csi/rbd/raw-block-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: raw-block-rbd-pvc
spec:
accessModes:
- ReadWriteOnce
volumeMode: Block
resources:
requests:
storage: 1Gi
storageClassName: rook-ceph-block

0 comments on commit d1351d1

Please sign in to comment.