Added Bitnami PostgreSQL sub chart
This commit is contained in:
@@ -47,12 +47,26 @@ spec:
|
||||
value: http://{{ include "mailman3.fullname" . }}-web.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}/hyperkitty
|
||||
- name: MTA
|
||||
value: postfix
|
||||
{{- if .Values.smtp }}
|
||||
- name: SMTP_HOST
|
||||
value: {{ .Values.smtp.host }}
|
||||
- name: SMTP_PORT
|
||||
value: {{ .Values.smtp.port }}
|
||||
{{- else }}
|
||||
- name: SMTP_HOST
|
||||
value: {{ include "mailman3.fullname" . }}-core.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
- name: DATABASE_CLASS
|
||||
value: mailman.database.postgresql.PostgreSQLDatabase
|
||||
- name: DATABASE_URL
|
||||
value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@postgresql/mailman"
|
||||
{{- else }}
|
||||
- name: DATABASE_CLASS
|
||||
value: mailman.database.sqlite.SQLiteDatabase
|
||||
- name: DATABASE_URL
|
||||
value: "sqlite:////opt/mailman/var/data/mailman.db"
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: api
|
||||
containerPort: 8001
|
||||
@@ -76,6 +90,8 @@ spec:
|
||||
mountPath: /opt/mailman
|
||||
resources:
|
||||
{{- toYaml .Values.core.resources | nindent 12 }}
|
||||
{{- if .Values.smtp }}
|
||||
{{- else }}
|
||||
- name: postfix
|
||||
image: boky/postfix:latest
|
||||
env:
|
||||
@@ -118,6 +134,7 @@ spec:
|
||||
- name: core-data
|
||||
subPath: var/data
|
||||
mountPath: /mailman
|
||||
{{- end }}
|
||||
{{- with .Values.core.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -158,4 +175,4 @@ spec:
|
||||
protocol: TCP
|
||||
selector:
|
||||
{{- include "mailman3.selectorLabels" . | nindent 4 }}
|
||||
app.kubernetes.io/component: core
|
||||
app.kubernetes.io/component: core
|
||||
|
||||
@@ -51,17 +51,32 @@ spec:
|
||||
- name: SERVE_FROM_DOMAIN
|
||||
value: {{ .Values.hostname | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
- name: DATABASE_URL
|
||||
value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@postgresql/mailman"
|
||||
- name: DATABASE_TYPE
|
||||
value: postgresql
|
||||
{{- else }}
|
||||
- name: DATABASE_URL
|
||||
value: sqlite://///opt/mailman-web-data/mailmanweb.db
|
||||
- name: DATABASE_TYPE
|
||||
value: sqlite
|
||||
{{- end }}
|
||||
- name: MAILMAN_ADMIN_USER
|
||||
value: {{ .Values.admin.username }}
|
||||
- name: MAILMAN_ADMIN_EMAIL
|
||||
value: {{ .Values.admin.email }}
|
||||
{{- if .Values.smtp }}
|
||||
- name: SMTP_HOST
|
||||
value: {{ .Values.smtp }}
|
||||
value: {{ .Values.smtp.host }}
|
||||
- name: SMTP_PORT
|
||||
value: {{ .Values.smtp.port }}
|
||||
- name: SMTP_HOST_USER
|
||||
value: {{ .Values.smtp.host_user }}
|
||||
- name: SMTP_HOST_PASSWORD
|
||||
value: {{ .Values.smtp.host_password }}
|
||||
- name: SMTP_USE_TLS
|
||||
value: {{ .Values.smtp.use_tls }}
|
||||
{{- else }}
|
||||
- name: SMTP_HOST
|
||||
value: {{ include "mailman3.fullname" . }}-core.{{ .Release.Namespace }}.svc.{{ $clusterDomain }}
|
||||
|
||||
Reference in New Issue
Block a user