diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 3d13cb1..22705e3 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 @@ -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 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: {}