Skip to content

Commit

Permalink
Only use internalTrafficPolicy: if on Kubernetes vesrion 1.26 or later (
Browse files Browse the repository at this point in the history
#7071)

* Only use internalTrafficPolicy: if on Kubernetes vesrion 1.26 or later

Same issue as in grafana/alloy#1212

* Update CHANGELOG.md

* Move changelog entry to "main"

---------

Co-authored-by: Paulin Todev <[email protected]>
  • Loading branch information
xylogenw376dq and ptodev authored Dec 18, 2024
1 parent fa51971 commit d26ecfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operations/helm/charts/grafana-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ This document contains a historical list of changes between releases. Only
changes that impact end-user behavior are listed; changes to documentation or
internal API changes are not present.


Main (unreleased)
----------

- Only utilize spec.internalTrafficPolicy in the Service if deploying to Kubernetes 1.26 or later. (@xylogenw376dq)

0.43.3 (2024-09-26)
----------

Expand Down
2 changes: 2 additions & 0 deletions operations/helm/charts/grafana-agent/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ spec:
{{- end }}
selector:
{{- include "grafana-agent.selectorLabels" . | nindent 4 }}
{{- if semverCompare ">=1.26-0" .Capabilities.KubeVersion.Version }}
internalTrafficPolicy: {{.Values.service.internalTrafficPolicy}}
{{- end }}
ports:
- name: http-metrics
{{- if eq .Values.service.type "NodePort" }}
Expand Down

0 comments on commit d26ecfd

Please sign in to comment.