helm: add option for external db (#15722)

This commit is contained in:
Alex Dunn
2021-02-14 11:16:32 -08:00
committed by GitHub
parent 3447bd2f80
commit 55a6b54f8e
12 changed files with 41 additions and 1 deletions

View File

@ -5,7 +5,11 @@ metadata:
labels:
{{- include "mastodon.labels" . | nindent 4 }}
data:
{{- if .Values.postgresql.enabled }}
DB_HOST: {{ template "mastodon.postgresql.fullname" . }}
{{- else }}
DB_HOST: {{ .Values.postgresql.postgresqlHostname }}
{{- end }}
DB_NAME: {{ .Values.postgresql.postgresqlDatabase }}
DB_POOL: {{ .Values.application.sidekiq.concurrency | quote }}
DB_PORT: "5432"