Skip to content

Commit

Permalink
Merge pull request #176 from caguiclajmg/master
Browse files Browse the repository at this point in the history
support `trafficDistribution` for service
  • Loading branch information
hagaibarel authored Oct 6, 2024
2 parents ecdc676 + 9f2338a commit b0c2821
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions charts/coredns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
3 changes: 3 additions & 0 deletions charts/coredns/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ spec:
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
{{- end }}
{{- if .Values.service.trafficDistribution }}
trafficDistribution: {{ .Values.service.trafficDistribution }}
{{- end }}
1 change: 1 addition & 0 deletions charts/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ prometheus:
prometheus.io/scrape: "true"
prometheus.io/port: "9153"
selector: {}
# trafficDistribution: PreferClose
monitor:
enabled: false
additionalLabels: {}
Expand Down

0 comments on commit b0c2821

Please sign in to comment.