2026-10-28: webshop Alertmanager waited in Init for its webhook secrets¶
Kind: reference (incident report)
Severity: warning · Status: resolved · Resolved by: the owner's alerting step; the operator agent checked it · Duration: ~0:01 from detection to resolution, 18:07:56–18:08:25 UTC (fault 17:47–18:07:48, ~21 min) · Taskbase task: #2022
Summary¶
PR #992 brought the Prometheus stack to the new webshop cluster. Alertmanager's Mattermost webhook
Secret is a required mount, and the OpenBao entries it is synced from did not exist yet. So the
first Alertmanager pod waited in Init for about 21 minutes, as the webshop cluster README said it
would until the owner's alerting step was done. Once the entries were written, the ExternalSecrets
synced and the pod started at 18:07:48. Its first notification was the KubeStatefulSetReplicasMismatch
alert about itself. The alert stopped firing at the next rule evaluation (18:08:25). The operator
changed nothing.
Impact¶
- Services: Alertmanager on
webshop: 0/1 replicas from 17:47 to 18:07:48. Prometheus kept evaluating rules, but the cluster sent no notifications in that window. - Users: none. The webshop cluster was just installed and nothing user-facing depends on its alerts yet.
- Data: none
- Duration: fault 17:47–18:07:48 UTC (~21 min). Detection came at 18:07:56, after the fault had already ended, because the component that was down was the one that delivers alerts.
Timeline¶
All times UTC.
| Time | Event | Source |
|---|---|---|
| 17:42 | PR #992 merged: Prometheus stack without Grafana for webshop |
Git 5362428 |
| 17:46:19 | ExternalSecrets alertmanager-mattermost-webhook and taskbase-alertmanager-webhook created; both fail with key: webshop/monitoring/... err: Secret does not exist |
ExternalSecret events |
| 17:46:30 | Helm install of monitoring-kube-prometheus-stack (kube-prometheus-stack 92.11.1) succeeds, revision 1 |
helm history |
| 17:47:08 | Alertmanager pod scheduled; MountVolume.SetUp failed ... secret "alertmanager-mattermost-webhook" not found, so the pod waits in Init |
pod events and conditions |
| 17:49 | KubeStatefulSetReplicasMismatch pending (kube_statefulset_status_replicas_ready 0, replicas 1) |
Prometheus ALERTS |
| 18:03:25 | Alert firing in Prometheus, not delivered because Alertmanager is not running | Prometheus ALERTS |
| ~18:07 | KV entries clusters/webshop/monitoring/alertmanager-mattermost and .../taskbase-alertmanager-webhook written (the owner's step in the webshop cluster README; exact time not recorded) |
ExternalSecret secret created, refreshTime 18:07:04 |
| 18:07:48 | Alertmanager pod Ready (containers started 18:07:42) |
pod conditions |
| 18:07:56 | Detected: Alertmanager's first notification opens Taskbase #2022 | Taskbase task |
| 18:08:10 | The operator run finds the alert active, not silenced, while the StatefulSet already shows 1/1 |
Alertmanager /api/v2/alerts, kubectl get sts |
| 18:08:25 | Resolved: rule evaluation is inactive, then Alertmanager returns no alert for the name |
Prometheus /api/v1/rules, Alertmanager /api/v2/alerts |
Root cause¶
components/prometheus-stack/helmrelease.yaml lists alertmanager-mattermost-webhook under
alertmanagerSpec.secrets. The prometheus-operator mounts every name there as a required Secret
volume. The Taskbase token is an optional volume since
2026-10-24. On webshop, the ExternalSecret
for the Mattermost webhook reads webshop/monitoring/alertmanager-mattermost in the clusters KV
mount. That entry was a person's step, still marked "not done yet" in
terraform/environments/hetzner-webshop-cluster/README.md when #992 merged. Until the entry
existed, the Secret did not exist, the kubelet could not mount it, and the StatefulSet stayed at 0/1
ready. After 15 minutes that is what KubeStatefulSetReplicasMismatch reports.
What the agent did¶
The agent ran only read-only checks; it made no writes to the cluster.
kubectl -n monitoring get sts,podsandget alertmanager: StatefulSet 1/1, pod2/2 Running.kubectl -n monitoring port-forward svc/alertmanager-operatedandcurl -sG .../api/v2/alerts --data-urlencode 'filter=alertname="KubeStatefulSetReplicasMismatch"': one alert,state: active,silencedBy: [], updated 18:07:55.- Prometheus queries:
kube_statefulset_status_replicas_readyandkube_statefulset_replicasboth 1. The rule expression returns nothing, the range shows ready 0 from 17:48 to 18:07, and/api/v1/rulesreports the ruleinactiveat 18:08:25. - The Alertmanager query again ~20 s later returned
[], and/api/v2/silencesreturned[]. - Pod conditions and
kubectl -n monitoring get eventsshowed the root cause in the timeline. kubectl -n monitoring get externalsecret: all three ExternalSecretsSecretSynced.flux get kustomizations -Aandflux get helmreleases -Awith--status-selector ready=falsereturned none.- Alertmanager logs since its start showed no notify errors.
- This pull request: this report, and the README's alerting step marked done.
Resolution and verification¶
At 18:08:25 Prometheus evaluated the rule as inactive. Afterwards the Alertmanager API returned no
alert named KubeStatefulSetReplicasMismatch, with no silence. The StatefulSet is 1/1, both
webhook ExternalSecrets are SecretSynced, and Flux shows no Kustomization or HelmRelease that is
not Ready on webshop.
Follow-ups¶
none
References¶
- Alert:
KubeStatefulSetReplicasMismatch, runbook - Taskbase incident task: #2022
- Runs: the
operatorrun for #2022 - Pull requests: #992 (Prometheus stack on webshop); this report's pull request
- Runbook sections: none needed; the alert had stopped firing before any fix was due.
- Earlier incident, same mechanism: 2026-10-24
Open questions¶
- The exact time the KV entries were written, and by whom, is not on record. The README names it as the owner's step.
- The Mattermost webhook stays a required mount, so a new cluster sends no alerts until its entry exists. The README documents this. Making that mount optional too, like the Taskbase token, would be a design change for the owner to weigh.
- The alert description reads "on cluster .". The
clusterlabel is probably added as an external label after the rule's template is rendered, but this run did not confirm that.