diff --git a/helm/passbook/templates/web-deployment.yaml b/helm/passbook/templates/web-deployment.yaml index 549dd3772..dd16165c3 100644 --- a/helm/passbook/templates/web-deployment.yaml +++ b/helm/passbook/templates/web-deployment.yaml @@ -20,6 +20,10 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} passbook.io/component: web spec: + volumes: + - name: config-volume + configMap: + name: {{ include "passbook.fullname" . }}-config initContainers: - name: passbook-database-migrations image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}" @@ -27,6 +31,9 @@ spec: - ./manage.py args: - migrate + volumeMounts: + - mountPath: /etc/passbook + name: config-volume envFrom: - configMapRef: name: {{ include "passbook.fullname" . }}-config @@ -50,6 +57,9 @@ spec: - uwsgi args: - uwsgi.ini + volumeMounts: + - mountPath: /etc/passbook + name: config-volume envFrom: - configMapRef: name: {{ include "passbook.fullname" . }}-config diff --git a/helm/passbook/templates/worker-deployment.yaml b/helm/passbook/templates/worker-deployment.yaml index 68bbd0e3c..5ac7719dc 100644 --- a/helm/passbook/templates/worker-deployment.yaml +++ b/helm/passbook/templates/worker-deployment.yaml @@ -20,6 +20,10 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} passbook.io/component: worker spec: + volumes: + - name: config-volume + configMap: + name: {{ include "passbook.fullname" . }}-config containers: - name: {{ .Chart.Name }} image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}" @@ -32,6 +36,9 @@ spec: - -E - -B - -A passbook.root.celery + volumeMounts: + - mountPath: /etc/passbook + name: config-volume envFrom: - configMapRef: name: {{ include "passbook.fullname" . }}-config