Skip to content

Commit

Permalink
Add "externalTrafficPolicy" to Prometheus service.
Browse files Browse the repository at this point in the history
Signed-off-by: Víctor Díaz Marco <[email protected]>
  • Loading branch information
v0ctor committed Jan 31, 2025
1 parent c1986fc commit 9b0295f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: v3.1.0
version: 27.1.0
version: 27.2.0
kubeVersion: ">=1.19.0-0"
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
{{- range $cidr := .Values.server.service.loadBalancerSourceRanges }}
- {{ $cidr }}
{{- end }}
{{- end }}
{{- if ne .Values.server.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.server.service.externalTrafficPolicy }}
{{- end }}
ports:
- name: http
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ server:
servicePort: 80
sessionAffinity: None
type: ClusterIP
externalTrafficPolicy: ""

## Enable gRPC port on service to allow auto discovery with thanos-querier
gRPC:
Expand Down

0 comments on commit 9b0295f

Please sign in to comment.