From 966a285b40f04c483fcc17856e2291ad3f17e569 Mon Sep 17 00:00:00 2001 From: Fabio Date: Wed, 31 Aug 2022 11:29:49 -0300 Subject: [PATCH] Added hostPort for postfix --- charts/postfix/v0.1.0/templates/app.yaml | 3 +++ charts/postfix/v0.1.0/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/postfix/v0.1.0/templates/app.yaml b/charts/postfix/v0.1.0/templates/app.yaml index 2cace16..41c1c35 100644 --- a/charts/postfix/v0.1.0/templates/app.yaml +++ b/charts/postfix/v0.1.0/templates/app.yaml @@ -54,6 +54,9 @@ spec: - name: smtp containerPort: 25 protocol: TCP + {{- if .Values.postfix.hostPort }} + hostPort: {{ .Values.postfix.hostPort }} + {{- end }} livenessProbe: tcpSocket: port: 25 diff --git a/charts/postfix/v0.1.0/values.yaml b/charts/postfix/v0.1.0/values.yaml index 6c031e2..b98d399 100644 --- a/charts/postfix/v0.1.0/values.yaml +++ b/charts/postfix/v0.1.0/values.yaml @@ -47,6 +47,7 @@ postfix: senderBcc: "" kind: StatefulSet configuration: "" + hostPort: 25 autoscaling: enabled: false