Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master / unreleased

* [FEATURE] Add trafficDistribution attribute to services #674

## 3.4.0 / 2026-09-21

* [FEATURE] Add remote-write OTLP endpoint in nginx #667
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Kubernetes: `^1.19.0-0`
| alertmanager.​securityContext | object | `{}` | |
| alertmanager.​service.​annotations | object | `{}` | |
| alertmanager.​service.​labels | object | `{}` | |
| alertmanager.​service.​trafficDistribution | string | `""` | |
| alertmanager.​serviceAccount.​name | string | `""` | "" disables the individual serviceAccount and uses the global serviceAccount for that component |
| alertmanager.​serviceMonitor.​additionalLabels | object | `{}` | |
| alertmanager.​serviceMonitor.​enabled | bool | `false` | |
Expand Down Expand Up @@ -299,6 +300,7 @@ Kubernetes: `^1.19.0-0`
| distributor.​securityContext | object | `{}` | |
| distributor.​service.​annotations | object | `{}` | |
| distributor.​service.​labels | object | `{}` | |
| distributor.​service.​trafficDistribution | string | `""` | |
| distributor.​serviceAccount.​name | string | `""` | "" disables the individual serviceAccount and uses the global serviceAccount for that component |
| distributor.​serviceMonitor.​additionalLabels | object | `{}` | |
| distributor.​serviceMonitor.​enabled | bool | `false` | |
Expand Down Expand Up @@ -746,6 +748,7 @@ Kubernetes: `^1.19.0-0`
| query_frontend.​securityContext | object | `{}` | |
| query_frontend.​service.​annotations | object | `{}` | |
| query_frontend.​service.​labels | object | `{}` | |
| query_frontend.​service.​trafficDistribution | string | `""` | |
| query_frontend.​serviceAccount.​name | string | `""` | "" disables the individual serviceAccount and uses the global serviceAccount for that component |
| query_frontend.​serviceMonitor.​additionalLabels | object | `{}` | |
| query_frontend.​serviceMonitor.​enabled | bool | `false` | |
Expand Down Expand Up @@ -844,6 +847,7 @@ Kubernetes: `^1.19.0-0`
| ruler.​securityContext | object | `{}` | |
| ruler.​service.​annotations | object | `{}` | |
| ruler.​service.​labels | object | `{}` | |
| ruler.​service.​trafficDistribution | string | `""` | |
| ruler.​serviceAccount.​name | string | `""` | "" disables the individual serviceAccount and uses the global serviceAccount for that component |
| ruler.​serviceMonitor.​additionalLabels | object | `{}` | |
| ruler.​serviceMonitor.​enabled | bool | `false` | |
Expand Down
3 changes: 3 additions & 0 deletions templates/alertmanager/alertmanager-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ spec:
targetPort: http-metrics
selector:
{{- include "cortex.alertmanagerSelectorLabels" . | nindent 4 }}
{{- with .Values.alertmanager.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end -}}
5 changes: 4 additions & 1 deletion templates/distributor/distributor-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ spec:
targetPort: http-metrics
selector:
{{- include "cortex.distributorSelectorLabels" . | nindent 4 }}
{{- end }}
{{- with .Values.distributor.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions templates/nginx/nginx-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ spec:
targetPort: http-metrics
selector:
{{- include "cortex.nginxSelectorLabels" . | nindent 4 }}
{{- with .Values.nginx.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions templates/query-frontend/query-frontend-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ spec:
targetPort: grpc
selector:
{{- include "cortex.queryFrontendSelectorLabels" . | nindent 4 }}
{{- with .Values.query_frontend.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end -}}
3 changes: 3 additions & 0 deletions templates/ruler/ruler-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ spec:
targetPort: http-metrics
selector:
{{- include "cortex.rulerSelectorLabels" . | nindent 4 }}
{{- with .Values.ruler.service.trafficDistribution }}
trafficDistribution: {{ . }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ alertmanager:
service:
annotations: {}
labels: {}
trafficDistribution: ""

serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
Expand Down Expand Up @@ -337,6 +338,7 @@ distributor:
service:
annotations: {}
labels: {}
trafficDistribution: ""

serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
Expand Down Expand Up @@ -636,6 +638,7 @@ ruler:
service:
annotations: {}
labels: {}
trafficDistribution: ""

serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
Expand Down Expand Up @@ -897,6 +900,7 @@ query_frontend:
service:
annotations: {}
labels: {}
trafficDistribution: ""

serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
Expand Down
Loading