Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@ spec:
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: SMTP_SERVER_HOST
valueFrom:
configMapKeyRef:
name: smtp-config
key: smtp.host
- name: SMTP_SERVER_USERNAME
valueFrom:
configMapKeyRef:
name: smtp-config
key: smtp.user
- name: SMTP_SERVER_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.smtp.passwordSecret }}
key: {{ .Values.smtp.passwordKey }}
- name: SITE_MAIL_SENDER
valueFrom:
configMapKeyRef:
name: smtp-config
key: smtp.sendFrom
- name: SITE_MAIL_RECEIVER
valueFrom:
configMapKeyRef:
name: smtp-config
key: smtp.sendTo
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
Expand Down
9 changes: 9 additions & 0 deletions helm/templates/smtp-cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: smtp-config
data:
smtp.host: {{ .Values.smtp.host }}
smtp.user: {{ .Values.smtp.user }}
smtp.sendFrom: {{ .Values.smtp.sendFrom }}
smtp.sendTo: {{ .Values.smtp.sendTo }}
8 changes: 8 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@ nodeSelector: {}
tolerations: []

affinity: {}

smtp:
host: mail.example.com
user: ""
passwordSecret: ""
passwordKey: password
sendFrom: ""
sendTo: ""
Loading