From 1e8af04867da7909acbeeccf210293daba0f8e13 Mon Sep 17 00:00:00 2001 From: qizhicheng Date: Tue, 24 Sep 2024 17:22:38 +0800 Subject: [PATCH] Update coredns version to 1.34.0 and add support for internal traffic policy in service.yaml --- charts/coredns/Chart.yaml | 2 +- charts/coredns/templates/service.yaml | 3 +++ charts/coredns/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 14831f5..331f060 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -21,4 +21,4 @@ name: coredns sources: - https://github.com/coredns/coredns type: application -version: 1.33.0 +version: 1.34.0 diff --git a/charts/coredns/templates/service.yaml b/charts/coredns/templates/service.yaml index 42a7098..ddba53d 100644 --- a/charts/coredns/templates/service.yaml +++ b/charts/coredns/templates/service.yaml @@ -42,6 +42,9 @@ spec: {{- if .Values.service.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }} {{- end }} + {{- if .Values.service.internalTrafficPolicy }} + externalTrafficPolicy: {{ .Values.service.internalTrafficPolicy }} + {{- end }} {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index aa0497b..feceeee 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -56,6 +56,7 @@ service: # loadBalancerIP: "" # externalIPs: [] # externalTrafficPolicy: "" +# internalTrafficPolicy: "" # ipFamilyPolicy: "" # The name of the Service # If not set, a name is generated using the fullname template