e2e: add deployment example for ROX used by multiple pods mounting same device

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2021-10-28 18:01:39 +05:30 committed by mergify[bot]
parent fd7c8f375e
commit e5435c5bdc
2 changed files with 59 additions and 0 deletions

View File

@ -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

View File

@ -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