Skip to content

Commit

Permalink
add externalTrafficPolicy to prometheus node exporter service spec
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Liu <ljc1993917@gmail.com>
  • Loading branch information
junchil committed May 2, 2024
1 parent 413b4c4 commit c10f847
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-node-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- prometheus
- exporter
type: application
version: 4.33.0
version: 4.33.1
appVersion: 1.8.0
home: https://github.com/prometheus/node_exporter/
sources:
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-node-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
{{- if .Values.service.ipDualStack.enabled }}
ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }}
ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
type: {{ .Values.service.type }}
ports:
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ service:
enabled: false
ipFamilies: ["IPv6", "IPv4"]
ipFamilyPolicy: "PreferDualStack"
externalTrafficPolicy: Cluster

# Set a NetworkPolicy with:
# ingress only on service.port
Expand Down

0 comments on commit c10f847

Please sign in to comment.