From afd6dec1730376d34653a9e884490bc6b4f54121 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 6 Jul 2022 11:36:23 -0300 Subject: [PATCH] Added hostname environment variable for postfix --- charts/postfix/v0.1.0/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/postfix/v0.1.0/templates/deployment.yaml b/charts/postfix/v0.1.0/templates/deployment.yaml index 5bbaac4..7c791bd 100644 --- a/charts/postfix/v0.1.0/templates/deployment.yaml +++ b/charts/postfix/v0.1.0/templates/deployment.yaml @@ -35,6 +35,10 @@ spec: env: - name: DOMAIN value: {{ .Values.postfix.domain | quote }} + - name: HOSTNAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName - name: MESSAGE_SIZE_LIMIT value: {{ .Values.postfix.messageSizeLimit | quote }} - name: RELAYHOST