forked from rook/rook
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
csi: add pvc & pod yamls for block volume mode
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
1 parent
95e71f1
commit d1351d1
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |