Skip to content

Commit 6d66dac

Browse files
committed
Added a pvc now that e2e tests are split across pods.
1 parent 997fbf5 commit 6d66dac

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: banzai/tests/k8s/e2e-k8s.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: banzai-shared-pvc
5+
labels:
6+
group: banzai-e2e-test
7+
spec:
8+
accessModes:
9+
- ReadWriteMany
10+
resources:
11+
requests:
12+
storage: 10Gi
13+
---
114
apiVersion: apps/v1
215
kind: Deployment
316
metadata:
@@ -131,10 +144,17 @@ spec:
131144
restartPolicy: Always
132145
securityContext:
133146
fsGroup: 10000
147+
volumes:
148+
- name: banzai-shared-volume
149+
persistentVolumeClaim:
150+
claimName: banzai-shared-pvc
134151
containers:
135152
- name: banzai-celery-workers
136153
image: banzai:test-latest
137154
imagePullPolicy: IfNotPresent
155+
volumeMounts:
156+
- name: banzai-shared-volume
157+
mountPath: /archive
138158
env:
139159
- name: DB_ADDRESS
140160
value: "sqlite:////archive/engineering/test.db?timeout=30"
@@ -214,10 +234,17 @@ spec:
214234
restartPolicy: Always
215235
securityContext:
216236
fsGroup: 10000
237+
volumes:
238+
- name: banzai-shared-volume
239+
persistentVolumeClaim:
240+
claimName: banzai-shared-pvc
217241
containers:
218242
- name: banzai-large-celery-workers
219243
image: banzai:test-latest
220244
imagePullPolicy: IfNotPresent
245+
volumeMounts:
246+
- name: banzai-shared-volume
247+
mountPath: /archive
221248
env:
222249
- name: DB_ADDRESS
223250
value: "sqlite:////archive/engineering/test.db?timeout=30"
@@ -297,10 +324,17 @@ spec:
297324
restartPolicy: Always
298325
securityContext:
299326
fsGroup: 10000
327+
volumes:
328+
- name: banzai-shared-volume
329+
persistentVolumeClaim:
330+
claimName: banzai-shared-pvc
300331
containers:
301332
- name: banzai-listener
302333
image: banzai:test-latest
303334
imagePullPolicy: IfNotPresent
335+
volumeMounts:
336+
- name: banzai-shared-volume
337+
mountPath: /archive
304338
env:
305339
- name: DB_ADDRESS
306340
value: "sqlite:////archive/engineering/test.db?timeout=30"

0 commit comments

Comments
 (0)