Skip to content

Commit

Permalink
e2e: add deployment example for ROX used by multiple pods mounting sa…
Browse files Browse the repository at this point in the history
…me device

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
  • Loading branch information
Prasanna Kumar Kalever authored and mergify-bot committed Nov 23, 2021
1 parent 144e8bc commit d055edc
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
30 changes: 30 additions & 0 deletions e2e/templates/rbd-block-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pod-block-rx-volume
labels:
app: pod-block-rx-volume
spec:
replicas: 3
selector:
matchLabels:
app: pod-block-rx-volume
template:
metadata:
labels:
app: pod-block-rx-volume
spec:
containers:
- name: centos
image: quay.io/centos/centos:latest
imagePullPolicy: IfNotPresent
command: ["/bin/sleep", "infinity"]
volumeDevices:
- name: data
devicePath: /dev/xvda
volumes:
- name: data
persistentVolumeClaim:
claimName: raw-block-pvc
readOnly: false
29 changes: 29 additions & 0 deletions e2e/templates/rbd-fs-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pod-fs-rx-volume
labels:
app: pod-fs-rx-volume
spec:
replicas: 3
selector:
matchLabels:
app: pod-fs-rx-volume
template:
metadata:
labels:
app: pod-fs-rx-volume
spec:
containers:
- name: web-server
image: docker.io/library/nginx:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: mypvc
mountPath: /var/lib/www/html
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: rbd-pvc
readOnly: false

0 comments on commit d055edc

Please sign in to comment.