-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Describe the bug a clear and concise description of what the bug is.
Using version 81.3.0 of the chart, after upgrading from 75.15.1
The prometheus operator is unable to find existing Alertmanager statefulsets which results in it trying to create the STS and logging errors stating:
failed: creating statefulset failed: statefulsets.apps \"alertmanager-prometheus-alertmanager\" already exists
This is due a change that was made in the prometheus operator since 0.85.0 where it looks for the STS based on the labels:
- app.kubernetes.io/name: alertmanager
- app.kubernetes.io/managed-by: prometheus-operator
The chart currently does not set the AlertManager resource's app.kubernetes.io/name label, and sets app.kubernetes.io/managed-by to HELM.
Workaround that has worked for me, is to configure values as follow:
alertmanager:
enabled: true
additionalLabels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/managed-by: prometheus-operator
What's your helm version?
3.19.5+g4a19a5b
What's your kubectl version?
v0.34.0
Which chart?
kube-prometheus-stack
What's the chart version?
81.3.0
What happened?
No response
What you expected to happen?
No response
How to reproduce it?
No response
Enter the changed values of values.yaml?
No response
Enter the command that you execute and failing/misfunctioning.
No command, installed by argoCD
Anything else we need to know?
Related to this issue: prometheus-operator/prometheus-operator#8312