From b09deec9714d79af166eb20aad92af3eee099898 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 8 Sep 2022 11:11:06 -0300 Subject: [PATCH] Add config option for nginx service traffic policy --- charts/mailproxy/v0.1.0/templates/nginx-service.yaml | 1 + charts/mailproxy/v0.1.0/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/mailproxy/v0.1.0/templates/nginx-service.yaml b/charts/mailproxy/v0.1.0/templates/nginx-service.yaml index c5bdf6e..7153b7a 100644 --- a/charts/mailproxy/v0.1.0/templates/nginx-service.yaml +++ b/charts/mailproxy/v0.1.0/templates/nginx-service.yaml @@ -13,5 +13,6 @@ spec: protocol: {{ $port.protocol }} name: {{ $port.name }} {{- end }} + externalTrafficPolicy: {{ .Values.nginx.service.externalTrafficPolicy }} selector: {{- include "mailproxy.nginx.selectorLabels" . | nindent 4 }} diff --git a/charts/mailproxy/v0.1.0/values.yaml b/charts/mailproxy/v0.1.0/values.yaml index f7c79e4..99860c7 100644 --- a/charts/mailproxy/v0.1.0/values.yaml +++ b/charts/mailproxy/v0.1.0/values.yaml @@ -9,6 +9,7 @@ nginx: replicaCount: 2 service: type: ClusterIP + externalTrafficPolicy: Cluster ports: - name: imaps number: 993