helm(minor): re-add volumes

This commit is contained in:
Langhammer, Jens 2019-10-07 17:22:35 +02:00
parent 8f42a7f0b4
commit 54cc1fdeef
2 changed files with 17 additions and 0 deletions

View file

@ -20,6 +20,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
passbook.io/component: web passbook.io/component: web
spec: spec:
volumes:
- name: config-volume
configMap:
name: {{ include "passbook.fullname" . }}-config
initContainers: initContainers:
- name: passbook-database-migrations - name: passbook-database-migrations
image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}" image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}"
@ -27,6 +31,9 @@ spec:
- ./manage.py - ./manage.py
args: args:
- migrate - migrate
volumeMounts:
- mountPath: /etc/passbook
name: config-volume
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "passbook.fullname" . }}-config name: {{ include "passbook.fullname" . }}-config
@ -50,6 +57,9 @@ spec:
- uwsgi - uwsgi
args: args:
- uwsgi.ini - uwsgi.ini
volumeMounts:
- mountPath: /etc/passbook
name: config-volume
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "passbook.fullname" . }}-config name: {{ include "passbook.fullname" . }}-config

View file

@ -20,6 +20,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
passbook.io/component: worker passbook.io/component: worker
spec: spec:
volumes:
- name: config-volume
configMap:
name: {{ include "passbook.fullname" . }}-config
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}" image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}"
@ -32,6 +36,9 @@ spec:
- -E - -E
- -B - -B
- -A passbook.root.celery - -A passbook.root.celery
volumeMounts:
- mountPath: /etc/passbook
name: config-volume
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "passbook.fullname" . }}-config name: {{ include "passbook.fullname" . }}-config