From 54cc1fdeef82cf96d09c8997cb79bd0f655a2888 Mon Sep 17 00:00:00 2001 From: "Langhammer, Jens" Date: Mon, 7 Oct 2019 17:22:35 +0200 Subject: [PATCH] helm(minor): re-add volumes --- helm/passbook/templates/web-deployment.yaml | 10 ++++++++++ helm/passbook/templates/worker-deployment.yaml | 7 +++++++ 2 files changed, 17 insertions(+) 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