Skip to content

Commit b0c2821

Browse files
authored
Merge pull request #176 from caguiclajmg/master
support `trafficDistribution` for service
2 parents ecdc676 + 9f2338a commit b0c2821

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

charts/coredns/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: coredns
3-
version: 1.34.0
3+
version: 1.35.0
44
appVersion: 1.11.3
55
home: https://coredns.io
66
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
@@ -20,4 +20,4 @@ type: application
2020
annotations:
2121
artifacthub.io/changes: |
2222
- kind: added
23-
description: Support different service and container ports
23+
description: Support `trafficDistribution` property for service

charts/coredns/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The command removes all the Kubernetes components associated with the chart and
7474
| `service.ipFamilyPolicy` | Service dual-stack policy | `""` |
7575
| `service.annotations` | Annotations to add to service | {} |
7676
| `service.selector` | Pod selector | `{}` |
77+
| `service.trafficDistribution` | Service traffic routing strategy | |
7778
| `serviceAccount.create` | If true, create & use serviceAccount | false |
7879
| `serviceAccount.name` | If not set & create is true, use template fullname | |
7980
| `rbac.create` | If true, create & use RBAC resources | true |

charts/coredns/templates/service.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ spec:
5656
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
5757
{{- end }}
5858
{{- end }}
59+
{{- if .Values.service.trafficDistribution }}
60+
trafficDistribution: {{ .Values.service.trafficDistribution }}
61+
{{- end }}

charts/coredns/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ prometheus:
4343
prometheus.io/scrape: "true"
4444
prometheus.io/port: "9153"
4545
selector: {}
46+
# trafficDistribution: PreferClose
4647
monitor:
4748
enabled: false
4849
additionalLabels: {}

0 commit comments

Comments
 (0)