Skip to content
Snippets Groups Projects
Verified Commit 698f4c13 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(postfix): bring postfix configs closer together

parent bd8f915b
No related branches found
No related tags found
No related merge requests found
Pipeline #18751 passed
...@@ -3,7 +3,7 @@ name: mok ...@@ -3,7 +3,7 @@ name: mok
description: | description: |
Mail on Kubernetes (MoK) is a project to deploy a functional mailserver that runs without a database server on Kubernetes, taking advantage of configmaps and secret. Mail on Kubernetes (MoK) is a project to deploy a functional mailserver that runs without a database server on Kubernetes, taking advantage of configmaps and secret.
type: application type: application
version: 0.10.0 version: 0.10.1
sources: sources:
- https://de.postfix.org/ftpmirror/index.html - https://de.postfix.org/ftpmirror/index.html
- https://github.com/dovecot/core - https://github.com/dovecot/core
......
# mok # mok
![Version: 0.10.0](https://img.shields.io/badge/Version-0.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![Version: 0.10.1](https://img.shields.io/badge/Version-0.10.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
Mail on Kubernetes (MoK) is a project to deploy a functional mailserver that runs without a database server on Kubernetes, taking advantage of configmaps and secret. Mail on Kubernetes (MoK) is a project to deploy a functional mailserver that runs without a database server on Kubernetes, taking advantage of configmaps and secret.
......
...@@ -200,6 +200,9 @@ data: ...@@ -200,6 +200,9 @@ data:
smtpd_banner = $myhostname ESMTP $mail_name smtpd_banner = $myhostname ESMTP $mail_name
biff = no biff = no
{{- if .Values.postfix.hostname }}
myhostname = {{ .Values.postfix.hostname }}
{{- end }}
append_dot_mydomain = no append_dot_mydomain = no
......
...@@ -88,6 +88,14 @@ spec: ...@@ -88,6 +88,14 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.postfix.securityContext | nindent 12 }} {{- toYaml .Values.postfix.securityContext | nindent 12 }}
volumeMounts: volumeMounts:
- name: config
mountPath: /etc/postfix/master.conf
subPath: master.conf
readOnly: true
- name: config
mountPath: /etc/postfix/main.conf
subPath: main.conf
readOnly: true
- name: spool - name: spool
mountPath: /var/spool/postfix/ mountPath: /var/spool/postfix/
- name: cache - name: cache
...@@ -115,6 +123,14 @@ spec: ...@@ -115,6 +123,14 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.postfix.securityContext | nindent 12 }} {{- toYaml .Values.postfix.securityContext | nindent 12 }}
volumeMounts: volumeMounts:
- name: config
mountPath: /etc/postfix/master.conf
subPath: master.conf
readOnly: true
- name: config
mountPath: /etc/postfix/main.conf
subPath: main.conf
readOnly: true
- name: spool - name: spool
mountPath: /var/spool/postfix/ mountPath: /var/spool/postfix/
- name: cache - name: cache
...@@ -201,9 +217,11 @@ spec: ...@@ -201,9 +217,11 @@ spec:
- name: config - name: config
mountPath: /etc/postfix/master.conf mountPath: /etc/postfix/master.conf
subPath: master.conf subPath: master.conf
readOnly: true
- name: config - name: config
mountPath: /etc/postfix/main.conf mountPath: /etc/postfix/main.conf
subPath: main.conf subPath: main.conf
readOnly: true
- name: spool - name: spool
mountPath: /var/spool/postfix/ mountPath: /var/spool/postfix/
- name: cache - name: cache
...@@ -233,6 +251,7 @@ spec: ...@@ -233,6 +251,7 @@ spec:
- name: config - name: config
configMap: configMap:
name: {{ include "mok.fullname" . }}-postfix name: {{ include "mok.fullname" . }}-postfix
defaultMode: 644
- name: tls - name: tls
secret: secret:
secretName: {{ required "TLS secret for postfix is required" .Values.postfix.tls.secretName }} secretName: {{ required "TLS secret for postfix is required" .Values.postfix.tls.secretName }}
......
...@@ -501,9 +501,11 @@ should match snapshot: ...@@ -501,9 +501,11 @@ should match snapshot:
volumeMounts: volumeMounts:
- mountPath: /etc/postfix/master.conf - mountPath: /etc/postfix/master.conf
name: config name: config
readOnly: true
subPath: master.conf subPath: master.conf
- mountPath: /etc/postfix/main.conf - mountPath: /etc/postfix/main.conf
name: config name: config
readOnly: true
subPath: main.conf subPath: main.conf
- mountPath: /var/spool/postfix/ - mountPath: /var/spool/postfix/
name: spool name: spool
...@@ -546,6 +548,14 @@ should match snapshot: ...@@ -546,6 +548,14 @@ should match snapshot:
- ALL - ALL
runAsNonRoot: false runAsNonRoot: false
volumeMounts: volumeMounts:
- mountPath: /etc/postfix/master.conf
name: config
readOnly: true
subPath: master.conf
- mountPath: /etc/postfix/main.conf
name: config
readOnly: true
subPath: main.conf
- mountPath: /var/spool/postfix/ - mountPath: /var/spool/postfix/
name: spool name: spool
- mountPath: /srv/tmp - mountPath: /srv/tmp
...@@ -585,6 +595,14 @@ should match snapshot: ...@@ -585,6 +595,14 @@ should match snapshot:
- ALL - ALL
runAsNonRoot: false runAsNonRoot: false
volumeMounts: volumeMounts:
- mountPath: /etc/postfix/master.conf
name: config
readOnly: true
subPath: master.conf
- mountPath: /etc/postfix/main.conf
name: config
readOnly: true
subPath: main.conf
- mountPath: /var/spool/postfix/ - mountPath: /var/spool/postfix/
name: spool name: spool
- mountPath: /srv/tmp - mountPath: /srv/tmp
...@@ -602,6 +620,7 @@ should match snapshot: ...@@ -602,6 +620,7 @@ should match snapshot:
secret: secret:
secretName: RELEASE-NAME-mok-postfix-maps secretName: RELEASE-NAME-mok-postfix-maps
- configMap: - configMap:
defaultMode: 644
name: RELEASE-NAME-mok-postfix name: RELEASE-NAME-mok-postfix
name: config name: config
- name: tls - name: tls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment