Skip to content

Commit

Permalink
[prometheus-node-exporter] Add externalTrafficPolicy to prometheus no…
Browse files Browse the repository at this point in the history
…de exporter service spec (#4512)

* add externalTrafficPolicy to prometheus node exporter service spec

Signed-off-by: Steve Liu <ljc1993917@gmail.com>

* Update charts/prometheus-node-exporter/templates/service.yaml

Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Steve Liu <ljc1993917@gmail.com>

* Update charts/prometheus-node-exporter/values.yaml

Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Steve Liu <ljc1993917@gmail.com>

* Update charts/prometheus-node-exporter/Chart.yaml

Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Steve Liu <ljc1993917@gmail.com>

---------

Signed-off-by: Steve Liu <ljc1993917@gmail.com>
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
  • Loading branch information
junchil and zeritti committed May 5, 2024
1 parent 21021a2 commit 7d50bd5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-node-exporter/Chart.yaml
Expand Up @@ -6,7 +6,7 @@ keywords:
- prometheus
- exporter
type: application
version: 4.33.0
version: 4.34.0
appVersion: 1.8.0
home: https://github.com/prometheus/node_exporter/
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-node-exporter/templates/service.yaml
Expand Up @@ -14,6 +14,9 @@ spec:
{{- if .Values.service.ipDualStack.enabled }}
ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }}
ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
type: {{ .Values.service.type }}
ports:
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-node-exporter/values.yaml
Expand Up @@ -98,6 +98,7 @@ service:
enabled: false
ipFamilies: ["IPv6", "IPv4"]
ipFamilyPolicy: "PreferDualStack"
externalTrafficPolicy: ""

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

0 comments on commit 7d50bd5

Please sign in to comment.