From 3b26a8628b9ed23448d94e68a19fce485f0f2c38 Mon Sep 17 00:00:00 2001 From: John Mark Gabriel Caguicla Date: Sat, 5 Oct 2024 12:35:12 +0800 Subject: [PATCH 1/3] support `trafficDistribution` for service Signed-off-by: John Mark Gabriel Caguicla --- charts/coredns/README.md | 1 + charts/coredns/templates/service.yaml | 3 +++ charts/coredns/values.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/charts/coredns/README.md b/charts/coredns/README.md index 43e15fe..7a87ac8 100644 --- a/charts/coredns/README.md +++ b/charts/coredns/README.md @@ -74,6 +74,7 @@ The command removes all the Kubernetes components associated with the chart and | `service.ipFamilyPolicy` | Service dual-stack policy | `""` | | `service.annotations` | Annotations to add to service | {} | | `service.selector` | Pod selector | `{}` | +| `service.trafficDistribution` | Service traffic routing strategy | | | `serviceAccount.create` | If true, create & use serviceAccount | false | | `serviceAccount.name` | If not set & create is true, use template fullname | | | `rbac.create` | If true, create & use RBAC resources | true | diff --git a/charts/coredns/templates/service.yaml b/charts/coredns/templates/service.yaml index a32dfa6..1247d09 100644 --- a/charts/coredns/templates/service.yaml +++ b/charts/coredns/templates/service.yaml @@ -56,3 +56,6 @@ spec: ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} {{- end }} {{- end }} + {{- if .Values.service.trafficDistribution }} + trafficDistribution: {{ .Values.service.trafficDistribution }} + {{- end }} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index 240c93a..9b6f7ae 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -43,6 +43,7 @@ prometheus: prometheus.io/scrape: "true" prometheus.io/port: "9153" selector: {} + # trafficDistribution: PreferClose monitor: enabled: false additionalLabels: {} From d1e4f38a140b393cda7c0d1319eeb4584be97604 Mon Sep 17 00:00:00 2001 From: John Mark Gabriel Caguicla Date: Sat, 5 Oct 2024 12:36:21 +0800 Subject: [PATCH 2/3] bump chart version to 1.35.0 Signed-off-by: John Mark Gabriel Caguicla --- charts/coredns/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 3d13cb1..5cb9cdf 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: coredns -version: 1.34.0 +version: 1.35.0 appVersion: 1.11.3 home: https://coredns.io icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png From 9f2338a7d0c2e02878f3efb1099229bb709801e8 Mon Sep 17 00:00:00 2001 From: John Mark Gabriel Caguicla Date: Sat, 5 Oct 2024 12:39:58 +0800 Subject: [PATCH 3/3] update changelog Signed-off-by: John Mark Gabriel Caguicla --- charts/coredns/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 5cb9cdf..22705e3 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -20,4 +20,4 @@ type: application annotations: artifacthub.io/changes: | - kind: added - description: Support different service and container ports + description: Support `trafficDistribution` property for service