diff --git a/e2e/templates/rbd-block-deployment.yaml b/e2e/templates/rbd-block-deployment.yaml new file mode 100644 index 000000000000..0fcf2a5df6f5 --- /dev/null +++ b/e2e/templates/rbd-block-deployment.yaml @@ -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 diff --git a/e2e/templates/rbd-fs-deployment.yaml b/e2e/templates/rbd-fs-deployment.yaml new file mode 100644 index 000000000000..8ee3cbb9c331 --- /dev/null +++ b/e2e/templates/rbd-fs-deployment.yaml @@ -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