Skip to content

Commit

Permalink
[kube-prometheus-stack] Add sessionAffinity support to alertmanager (#…
Browse files Browse the repository at this point in the history
…3376)

Signed-off-by: Jellyfrog <[email protected]>
  • Loading branch information
Jellyfrog authored May 15, 2023
1 parent e5999fc commit 8f91606
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 45.27.2
version: 45.28.0
appVersion: v0.65.1
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ spec:
selector:
app.kubernetes.io/name: alertmanager
alertmanager: {{ template "kube-prometheus-stack.alertmanager.crname" . }}
{{- if .Values.alertmanager.service.sessionAffinity }}
sessionAffinity: {{ .Values.alertmanager.service.sessionAffinity }}
{{- end }}
type: "{{ .Values.alertmanager.service.type }}"
{{- end }}
5 changes: 5 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ alertmanager:
##
externalTrafficPolicy: Cluster

## If you want to make sure that connections from a particular client are passed to the same Pod each time
## Accepts 'ClientIP' or ''
##
sessionAffinity: ""

## Service type
##
type: ClusterIP
Expand Down

0 comments on commit 8f91606

Please sign in to comment.