From 8018644db5d7ffde2aae7ea09cbfb18d85546dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andor=20Uhl=C3=A1r?= Date: Tue, 9 Apr 2019 04:07:04 +0200 Subject: [PATCH] [stable/coredns] Add service configuration fields (#11281) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [stable/coredns] Add service configuration fields Signed-off-by: Andor Uhlár * Bump chart version Signed-off-by: Andor Uhlár --- stable/coredns/Chart.yaml | 2 +- stable/coredns/templates/service.yaml | 6 ++++++ stable/coredns/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/coredns/Chart.yaml b/stable/coredns/Chart.yaml index 9db675e967..49e2e71839 100644 --- a/stable/coredns/Chart.yaml +++ b/stable/coredns/Chart.yaml @@ -1,5 +1,5 @@ name: coredns -version: 1.3.0 +version: 1.3.1 appVersion: 1.4.0 description: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services keywords: diff --git a/stable/coredns/templates/service.yaml b/stable/coredns/templates/service.yaml index 85d0a9c695..cb7457ddd8 100644 --- a/stable/coredns/templates/service.yaml +++ b/stable/coredns/templates/service.yaml @@ -24,6 +24,12 @@ spec: {{- if .Values.service.clusterIP }} clusterIP: {{ .Values.service.clusterIP }} {{- end }} + {{- if .Values.service.externalTrafficPolicy }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }} + {{- end }} + {{- if .Values.service.loadBalancerIP }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} + {{- end }} ports: {{ include "coredns.servicePorts" . | indent 2 -}} type: {{ default "ClusterIP" .Values.serviceType }} diff --git a/stable/coredns/values.yaml b/stable/coredns/values.yaml index a9ff3f015c..c90f13beef 100644 --- a/stable/coredns/values.yaml +++ b/stable/coredns/values.yaml @@ -21,6 +21,8 @@ serviceType: "ClusterIP" service: # clusterIP: "" +# loadBalancerIP: "" +# externalTrafficPolicy: "" annotations: prometheus.io/scrape: "true" prometheus.io/port: "9153"