Skip to content

Commit

Permalink
add initcontainer to db-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleysantos-ws committed Apr 13, 2020
1 parent 53d09a9 commit c61c7bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/konga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ spec:
app.kubernetes.io/name: {{ include "konga.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
initContainers:
- name: db-migration
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ["node", "./bin/konga.js", "prepare", "--adapter postgres", "--uri $(DB_URI)"]
envFrom:
- configMapRef:
name: konga-config
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down

0 comments on commit c61c7bc

Please sign in to comment.