consolidate Socket directories

Not sure why they are seperate.
Put into same pv for better metrics retention between deployments
This commit is contained in:
Jonathon Beauregard II 2022-12-02 13:58:27 -08:00
parent 72c40b8525
commit ceed31ea0c
2 changed files with 5 additions and 15 deletions

View file

@ -96,10 +96,6 @@ spec:
volumeMounts:
- mountPath: /var/spool/postfix
name: {{ $fullName }}
- mountPath: /var/spool/postfix/private
name: private
- mountPath: /var/spool/postfix/public
name: public
{{- if .Values.certs.create }}
- name: certs
mountPath: /var/run/certs
@ -120,12 +116,7 @@ spec:
{{- tpl .Values.extraContainers $root | nindent 8 }}
{{- end }}
volumes:
# Socket directories
- name: public
emptyDir: {}
- name: private
emptyDir: {}
{{- if .Values.certs.create }}
{{- if .Values.certs.create }}
- name: certs-init
configMap:
name: {{ $fullName }}
@ -134,6 +125,7 @@ spec:
secret:
secretName: {{ $fullName }}-certs
{{- end }}
# Socket directories
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: {{ $fullName }}
persistentVolumeClaim:

View file

@ -91,10 +91,6 @@ extraContainers: []
# volumeMounts:
# - mountPath: /var/spool/postfix
# name: mail
# - mountPath: /var/spool/postfix/private
# name: private
# - mountPath: /var/spool/postfix/public
# name: public
# - mountPath: /var/log/
# name: logs
# readinessProbe:
@ -133,9 +129,11 @@ container:
postfix:
securityContext: {}
# Auto-generate certificates for the server and mount them into Postfix volume
certs:
# Auto-generate certificates for the server and mount them into Postfix volume
create: false
# Provide existing cert
exising: false
# Define data which should be stored in a Secret
# (and shared with the pod as environment variables)