Added Bitnami PostgreSQL sub chart

This commit is contained in:
2026-04-01 09:53:03 -04:00
parent 5430859e9e
commit a2826da910
4 changed files with 124 additions and 3 deletions

View File

@@ -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