Skip to content

2026-11-09: webshop prometheus-gate waiting for its token and DNS record

Kind: reference (incident report)

Severity: warning · Status: resolved · Resolved by: the owner's steps (#2750), handed over by the operator agent (#2748), which checked them · Duration: 14 h 27 min 54 s from detection to resolution, 16:05:26–06:33:20 UTC next day (fault from 15:48:48, 14 h 44 min 32 s) · Taskbase task: #2748, #2756

Summary

PR #1331 (#2742) added prometheus-gate to webshop. It is the read-only Prometheus query route for eloro CI's staging gate. Its bearer token and its DNS record are the owner's one-time steps, and neither was done when the PR merged. The gate's pod therefore waits in ContainerCreating for the token Secret, and its certificate cannot be issued. KubeDeploymentReplicasMismatch (#2748), KubePodNotReady (#2749), KubeDeploymentRolloutStuck (#2751) and, after an hour, KubeContainerWaiting (#2756) fire for it, and CertificateNotReady (#2755, its report) for its certificate. The operator changed nothing and handed the steps to the owner in #2750. The owner did them on 2026-11-10: the token Secret synced at 06:32:44, the gate was available at 06:33:20 and its certificate was issued at 06:41:19.

Impact

  • Services: Deployment monitoring/prometheus-gate on webshop was at 0/1, with two pods waiting from 18:02 (see the timeline), and the Flux Kustomization prometheus-gate was HealthCheckFailed. Certificate gateway-system/prometheus-gate-tls was not issued. Nothing else depends on the gate: Prometheus, Alertmanager and the shops are not affected.
  • Users: none. The only consumer is eloro CI's staging gate (eloro #2439), which waited for this route anyway.
  • Data: none
  • Duration: fault from 15:48:48 UTC (the pod was created), alert firing from 16:04:25, detected at 16:05:26, resolved at 06:33:20 on 2026-11-10 when the gate became available: 14 h 27 min 54 s from detection, 14 h 44 min 32 s from the fault.

Timeline

All times UTC, 2026-11-09 unless the row says 11-10.

Time Event Source
15:45:25 PR #1331 merged: read-only Prometheus query route for eloro CI (#2742) Git 220ccc39
15:46:16 Flux Kustomization prometheus-gate created Kustomization metadata
15:48:17 Certificate prometheus-gate-tls created; its HTTP-01 self check fails: lookup prometheus.webshop.eloro.dk on 10.96.0.10:53: no such host Certificate, Challenge status
15:48:48 ExternalSecret prometheus-gate-token and pod prometheus-gate-56c756d966-fbb8k created. ExternalSecret: error processing spec.data[0] (key: webshop/prometheus-gate/token), err: Secret does not exist. Pod: MountVolume.SetUp failed for volume "token" : secret "prometheus-gate-token" not found ExternalSecret and pod events
15:58:49 Deployment Progressing=False ProgressDeadlineExceeded Deployment conditions
15:58:53 Kustomization prometheus-gate Ready=False: health check failed ... [Deployment/monitoring/prometheus-gate status: 'Failed'] flux get kustomizations
16:04:25 KubeDeploymentReplicasMismatch firing for deployment=prometheus-gate Alertmanager
16:05:26 Detected: Taskbase #2748 opened (and #2749 for KubePodNotReady on the same pod) Taskbase
~16:06 Operator run: alert still active, no silence; the cause traced to the missing token and DNS record Alertmanager /api/v2/alerts, the checks below
16:07:17 Owner's steps handed over in #2750 Taskbase
16:17 Operator run of #2749: KubePodNotReady (28c0abd9317f5414) still active, no silence; same cause. It handed the same steps over again as #2752, a duplicate of #2750 Alertmanager, Taskbase
16:49:25 KubeContainerWaiting firing for container nginx of pod prometheus-gate-56c756d966-fbb8k, reason=ContainerCreating (one hour in waiting) Alertmanager
16:50:26 Detected: Taskbase #2756 opened Taskbase
~16:57 Operator run (#2756): alert still active, no silence; same pod, same missing Secret; #2750 still open, so no new owner task or report Alertmanager /api/v2/alerts, the checks below
17:13:20 Operator rerun of #2749: the alert still active, no active silence; the pod still ContainerCreating, the ExternalSecret SecretSyncedError, the Certificate and the Kustomization prometheus-gate not Ready Alertmanager /api/v2/alerts, kubectl, flux
17:58:59 PR #1332 merged (#2744): it changes the gate's nginx ConfigMap, so its generated name changes from prometheus-gate-nginx-95tmhkh9hb to prometheus-gate-nginx-m9576c4dkt Git f4117e91, ReplicaSet pod templates
18:02:32 Deployment revision 2: ReplicaSet prometheus-gate-66b754dcd5 and pod prometheus-gate-66b754dcd5-4kjm7, which waits on the same missing Secret. The old pod prometheus-gate-56c756d966-fbb8k stays, because with one replica the rollout's maxUnavailable: 25% rounds down to 0, so the old pod is removed only after the new one is available ReplicaSets, pod events
18:12:33 Deployment Progressing=False: ReplicaSet "prometheus-gate-66b754dcd5" has timed out progressing Deployment conditions
19:02:55 KubeContainerWaiting firing for the new pod prometheus-gate-66b754dcd5-4kjm7 (4223381d7be36012); #2756 had been closed after its report PR #1339 merged, and was reopened at 19:05:26 Alertmanager, Taskbase
20:13:52 Operator run (#2756, reopened): both KubeContainerWaiting alerts active, no active silence; both pods ContainerCreating (FailedMount x72 over 131m on the new one); #2750 still open Alertmanager /api/v2/alerts, kubectl, flux
11-10 06:32:44 The owner has written the token (#2750): ExternalSecret prometheus-gate-token Ready=True (secret synced), Secret prometheus-gate-token created ExternalSecret conditions, Secret metadata
11-10 06:33:20 Resolved: pod prometheus-gate-66b754dcd5-4kjm7 Ready, Deployment Available=True (NewReplicaSetAvailable); the old ReplicaSet prometheus-gate-56c756d966 scaled to 0 Deployment and pod conditions
11-10 06:35:26 KubeDeploymentReplicasMismatch resolved notification reaches Taskbase #2748 comment
11-10 06:41:19 Certificate prometheus-gate-tls Ready=True (the owner's DNS apply, Terraform Apply - Webshop DNS run 10838, had created prometheus.webshop.eloro.dk) Certificate conditions
11-10 06:41:31 Kustomization prometheus-gate Ready=True, Healthy=True Kustomization conditions
11-10 ~06:44 Operator run (#2748): no gate alert in Alertmanager, no active silence; the gate answers 401 without the token and 200 with it Alertmanager /api/v2/alerts, curl

Root cause

The Deployment mounts the Secret prometheus-gate-token as a required volume (cluster/webshop/prometheus-stack/gate/deployment.yaml). The ExternalSecret (gate/external-secret.yaml) renders that Secret from clusters/webshop/prometheus-gate/token in OpenBao. That key has to be written by the owner, together with eloro's Actions secret WEBSHOP_PROMETHEUS_TOKEN. That is step 1 of the Owner's steps in Read-only query route for eloro CI, which says the pod waits in ContainerCreating until then. The PR merged before that step was done, so the kubelet cannot mount the volume. After 15 minutes at 0/1 available, KubeDeploymentReplicasMismatch fires.

Separately, step 2 of those owner's steps is the Terraform Apply - Webshop DNS dispatch for prometheus.webshop.eloro.dk. It is not done yet either, so cert-manager's HTTP-01 challenge cannot resolve the name. No task gave either step to the owner when #2742 merged.

Same pattern: 2026-10-28 webshop Alertmanager waited in Init for its webhook secrets.

What the agent did

The agent ran only read-only checks. It made no writes to the cluster and set no silence.

  1. kubectl --context webshop -n monitoring port-forward svc/alertmanager-operated 19093:9093, then curl -sG http://localhost:19093/api/v2/alerts --data-urlencode 'filter=alertname="KubeDeploymentReplicasMismatch"': one alert, 906716c683dbd0a7, deployment=prometheus-gate, state: active, no silencedBy. /api/v2/silences has no active silence.
  2. kubectl -n monitoring get deploy,rs,pods and describe deploy prometheus-gate: 0/1 available, the pod in ContainerCreating for 17 minutes, ProgressDeadlineExceeded.
  3. Pod events: MountVolume.SetUp failed for volume "token" : secret "prometheus-gate-token" not found.
  4. kubectl -n monitoring get externalsecret prometheus-gate-token: SecretSyncedError, could not get secret data from provider; event key: webshop/prometheus-gate/token ... Secret does not exist.
  5. flux get kustomizations -A and flux get helmreleases -A: only prometheus-gate not Ready; every HelmRelease Ready.
  6. getent hosts prometheus.webshop.eloro.dk: no record. Certificate prometheus-gate-tls Ready=False, Challenge pending, no such host.
  7. Read #2742, its comments and links, and the open tasks of the Platform project: no task gave the owner's steps to the owner.
  8. Created #2750, assigned to the owner, with the steps and the checks that show them done.

The run for #2756 (KubeContainerWaiting) also ran only read-only checks, set no silence and created no task:

  1. kubectl --context webshop -n monitoring port-forward svc/alertmanager-operated 19093:9093, then curl -sG http://localhost:19093/api/v2/alerts --data-urlencode 'filter=alertname="KubeContainerWaiting"': one alert, pod=prometheus-gate-56c756d966-fbb8k, state: active, no silencedBy; /api/v2/silences has no active silence.
  2. describe pod prometheus-gate-56c756d966-fbb8k: FailedMount (x40 over 68m), secret "prometheus-gate-token" not found. The ExternalSecret event is unchanged: key: webshop/prometheus-gate/token ... Secret does not exist.
  3. flux get kustomizations -A and flux get helmreleases -A: still only prometheus-gate not Ready ([Deployment/monitoring/prometheus-gate status: 'Failed']); every HelmRelease Ready. Certificate prometheus-gate-tls still READY False.
  4. Read #2742 and the open tasks of the Platform project: owner task #2750 is still open and covers the fix, so the run added #2756 to this report instead of a new owner task or report.

The run for the reopened #2756 also ran only read-only checks, set no silence and created no task:

  1. kubectl --context webshop -n monitoring port-forward svc/alertmanager-operated 19093:9093, then curl -sG http://localhost:19093/api/v2/alerts --data-urlencode 'filter=alertname="KubeContainerWaiting"': two alerts, 4223381d7be36012 (pod=prometheus-gate-66b754dcd5-4kjm7) and b1f6149d4906195a (pod=prometheus-gate-56c756d966-fbb8k), both state: active, no silencedBy; /api/v2/silences has no active silence.
  2. get rs,pods and describe pod prometheus-gate-66b754dcd5-4kjm7: two ReplicaSets at 0/1 ready, both pods ContainerCreating; FailedMount (x72 over 131m), secret "prometheus-gate-token" not found. The two ReplicaSets' pod templates differ only in the nginx ConfigMap name, from PR #1332 (#2744).
  3. get externalsecret prometheus-gate-token: still SecretSyncedError, could not get secret data from provider; the Secret does not exist.
  4. flux get kustomizations -A --status-selector ready=false: only prometheus-gate ([Deployment/monitoring/prometheus-gate status: 'Failed']); no HelmRelease not Ready. Certificate prometheus-gate-tls READY False; prometheus.webshop.eloro.dk still has no record.
  5. Read #2750: still open with the owner, unchanged. It covers the fix for both pods, so the run added the reopen to this report instead of a new owner task or report.

The run of #2748 on 2026-11-10, after the owner's steps, also ran only read-only checks, set no silence and created no task:

  1. kubectl --context webshop -n monitoring port-forward svc/alertmanager-operated 19093:9093, then curl -s http://localhost:19093/api/v2/alerts: no alert names prometheus-gate or has alertname="KubeDeploymentReplicasMismatch", and none is in namespace monitoring; /api/v2/silences has no active silence.
  2. get deploy,rs,pods: prometheus-gate 1/1, ReplicaSet prometheus-gate-66b754dcd5 1/1, prometheus-gate-56c756d966 0. get externalsecret prometheus-gate-token: SecretSynced.
  3. get certificate prometheus-gate-tls: READY True (Let's Encrypt YR1, until 2027-02-08); listener prometheus-gate-https on shared-gateway Programmed=True; getent hosts prometheus.webshop.eloro.dk: 167.233.187.133.
  4. curl -sG -o /dev/null -w '%{http_code}\n' --data-urlencode query=up https://prometheus.webshop.eloro.dk/api/v1/query: 401 without a header and with a wrong token; 200 with the synced token, read from the Secret without printing it, and status: success with 23 series. A POST gets 405: the gate only allows GET.
  5. flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false on webshop: none.

Resolution and verification

Resolved by the owner's steps in #2750: the token to OpenBao and eloro, the ExternalSecret sync, and the Webshop DNS apply (run 10838). The new pod prometheus-gate-66b754dcd5-4kjm7 started once the Secret existed, and the rollout removed the old pod prometheus-gate-56c756d966-fbb8k. The checks above show it: prometheus-gate 1/1, prometheus-gate-tls READY True, the Kustomization prometheus-gate Ready, the gate answering 401 without the token and 200 with it, and no prometheus-gate alert left in Alertmanager.

Follow-ups

  • 2750 — the owner's token and DNS steps; done, checked by the run of #2748. eloro #2439, which

    waited for this route, is the owner's to requeue.
  • 2749 — KubePodNotReady on the same pod, with the same cause; resolved with #2750.

  • 2752 — a duplicate of #2750, created by the run of #2749; closed in favour of #2750.

  • 2751 (KubeDeploymentRolloutStuck) and #2756 (KubeContainerWaiting) on the same Deployment,

    and #2755 (CertificateNotReady, its report) on its certificate, have the same cause; they resolved with #2750.
  • 2754 — why one stuck Deployment raised this many incident tasks, owner tasks and reports.

Open questions

  • A change that waits for a person's credential raises incidents and a not-Ready Kustomization as soon as it merges. Whether such a change should land with replicas: 0 (or wait to merge) until the credential exists is a process decision for the owner.