Skip to content

2026-11-06: worker-1 stalled twice under memory, CNPG webhook unreachable for mattermost

Kind: reference (incident report)

Severity: critical · Status: mitigated (recovered; worker-1's memory squeeze waits on the owner's Talos patches #2543 and #2549) · Resolved by: worker-1 recovered on its own; the operator agent (#2634) reconciled mattermost · Duration: 0:06 from detection to resolution, 15:45:55–15:52:08 UTC (worker-1 stalled 14:58–15:00 and ~15:41–15:48:19) · Taskbase task: #2634

Summary

worker-1 on hetzner-mgmt ran short of memory twice in an hour: first under an agent run that grew to 3.3 GiB, then under a CI job and the same agent. Each time the node stopped reporting for a few minutes. The CNPG operator, the only endpoint of its admission webhook, ran on worker-1. So at 15:45:55 Flux's dry run of Cluster/mattermost/mattermost-db timed out on the webhook, and the mattermost Kustomization went not Ready. worker-1 came back at 15:48:19. Once the webhook admitted again, one reconcile made mattermost Ready at 15:52. Nothing was changed in Git.

Impact

  • Services: flux-system/mattermost was not Ready from 15:45:55 until the reconcile at 15:51:33 applied it. Mattermost and mattermost-db ran on worker-3 throughout and stayed up (Cluster in healthy state). While worker-1 was out, every create or update of a CNPG Cluster would have been refused, but no other Kustomization failed on it. Gitea's database, gitea-postgresql-0, is on worker-1: probe_success of Gitea's /api/healthz was 0 from 14:58:30 to 15:00:45 and from 15:47:30 to 15:48:15, and at 15:47:49 /api/healthz reported database:ping fail. Alertmanager also runs on worker-1, so it could not deliver alerts during either stall. Pods on worker-1 restarted (Cilium agent, cert-manager, Flux's helm- and source-controller, the CNPG operator and its Barman Cloud plugin, emiliero-db-1, terraform-state-db-1, botyard-prod-db-1, Harbor's portal, nginx and redis, and others).
  • Users: Gitea was unavailable for about 2 min and about 1 min. The hourly Renovate run at 15:00 had its first pod fail with Authentication failure while Gitea's database was out. The Job's retry pod completed it.
  • Data: none lost. Every CNPG Cluster reported Cluster in healthy state at 15:53. The evictions of worker-1's pods were cancelled when the node returned (TaintManagerEviction "Cancelling deletion", 15:48:13–15:48:23), so no database pod moved.
  • Duration: 6 minutes from detection (the Flux error at 15:45:55) to resolution (15:52:08). worker-1 stalled from 14:58 to 15:00 and from about 15:41 to 15:48:19.

Timeline

All times UTC. Prometheus samples are 1- or 2-minute steps unless a time has seconds.

Time Event Source
12:40:34 main@9fa6fd03 merged: the Renovate chart to 46.402.0, components/renovate/helmrelease.yaml only. Helm revision 27 deployed 12:42:16 git show --stat, helm -n renovate history renovate
14:50 worker-1 MemAvailable 4.0 GiB; miki-container-agent 302 MiB; 89 % of allocatable memory requested Prometheus, kubectl describe node worker-1
14:57 agent-runners/miki-container-agent-85765999d-8mtcc at 3302 MiB (request 1Gi, limit 4Gi); MemAvailable 0.76 GiB at 14:58 Prometheus container_memory_working_set_bytes, node_memory_MemAvailable_bytes
14:58:10 cert-manager-cainjector killed, exit 137 pod lastState
14:58:30 Gitea probe_success 0 Prometheus
14:58:58 worker-1 NodeNotReady; node-exporter on 10.0.0.20 up 0 from 14:59 to 15:01 node events, Prometheus
15:00:15 Renovate pod renovate-29899620-26dtq (on worker-2) fails: Authentication failure; the Job's next pod completes pod log, kubectl -n renovate get jobs
15:00:33–15:00:37 kube-proxy, hcloud-csi-node, Alertmanager's config-reloader on worker-1 killed, exit 137 pod lastState
15:00:36 worker-1 NodeReady node events
15:00:45 Gitea probe_success back to 1 Prometheus
15:00–15:12 worker-1 MemAvailable 0.43–0.83 GiB, node_load1 up to 92 at 15:02 Prometheus
15:12:53 miki-container-agent runner container OOMKilled; node_vmstat_oom_kill 29 → 41; MemAvailable 3.7 GiB at 15:14 pod lastState, Prometheus
15:38–15:44 gitea/gitea-act-runner-56b45b58f-rwcwb grows from 970 MiB to 2154 MiB (its dind sidecar: request 2Gi, limit 4608Mi), miki-container-agent to 1107 MiB; MemAvailable 1.64 GiB at 15:42, 1.56 GiB at 15:44 Prometheus, pod spec
15:41:16 worker-1's kubelet posts its last node status (lease last renewed 15:45:23) node conditions, kube-node-lease
15:44:41 cilium-agent and terraform-state-db-1 (postgres, plugin-barman-cloud) on worker-1 killed, exit 137 pod lastState
15:45–15:48 node-exporter on 10.0.0.20 up 0; node_vmstat_oom_kill 41 → 45 by 15:49 Prometheus
15:45:55 Detected: flux-system/mattermost ReconciliationFailed, failed calling webhook "mcluster.cnpg.io" ... context deadline exceeded; task #2634 created Flux event, Taskbase
15:46:31 worker-1 NotReady, node.kubernetes.io/unreachable NoSchedule and NoExecute taints node conditions and taints
15:47:20 Server-side dry run of mattermost-db refused: dial tcp 10.104.31.28:443: connect: no route to host; the webhook's only endpoint 10.244.2.54 on worker-1 ready=false operator agent (What the agent did)
15:47:30–15:48:15 Gitea probe_success 0 Prometheus
15:48:08–15:48:25 Most containers on worker-1 stop and restart, including the CNPG operator, Flux's helm- and source-controller, Alertmanager and cert-manager; 12 SandboxChanged events pod lastState, events
15:48:13–15:48:23 Taint manager cancels the pending evictions of worker-1's pods TaintManagerEviction events
15:48:19 worker-1 Ready node condition lastTransitionTime
15:48:52 Webhook endpoint 10.244.2.54 ready operator agent
15:51:25–15:51:30 Server-side dry run of mattermost-db admitted; Gitea /api/healthz database:ping pass at 15:51:30 operator agent
15:51:33 flux -n flux-system reconcile kustomization mattermost: applied revision main@sha1:9fa6fd03 operator agent
15:52:08 Resolved: no Kustomization or HelmRelease not Ready flux get ... --status-selector ready=false

Root cause

The failure Flux reported. Cluster objects go through CNPG's mutating webhook mcluster.cnpg.io on every apply, including Flux's server-side dry run. The CNPG operator runs one replica, and that replica was on worker-1. While worker-1 was not answering, the API server's call to cnpg-webhook-service timed out (context deadline exceeded) or found no route (no route to host). So the mattermost Kustomization failed at its periodic reconcile. The revision it names, main@9fa6fd03, was only the source's HEAD at the time. It changed the Renovate chart and nothing in mattermost, and status.lastAppliedRevision was already 9fa6fd03. This is the case in the ops runbook's Admission webhook unreachable during a node disruption, and the same failure as 2026-10-31.

Why worker-1 stalled. Its memory was squeezed, in the pattern of the 2026-11-04 worker-3 stall. worker-1 (7.1 GiB allocatable) had 89 % of its memory requested and limits at 237 %. In the first stall, an agent run in miki-container-agent grew from 0.3 GiB to 3.3 GiB within its 4Gi limit but far above its 1Gi request. The node fell under 1 GiB available and stopped reporting for about 2 minutes. It then ran under 0.8 GiB with load up to 92 until the kernel OOM-killed the agent's runner at 15:12:53. In the second stall, a CI job in the act runner's dind (2.1 GiB, within its 4608Mi limit) and the agent (1.1 GiB) together took MemAvailable to about 1.5 GiB. At 15:44:41 the Cilium agent and a PostgreSQL pod were killed with exit 137, and the kubelet stopped reporting until 15:48:19. That kill matches Pods SIGKILLed with their sandbox, no kernel OOM and the 2026-11-04 worker-2 incident, but the record does not show what killed them (Open questions).

The fixes for this squeeze are already planned and wait on the owner, because they need talosctl: kubelet soft eviction at 2 GiB available (#2543) and Talos's OOMConfig (#2549). #2407 raises the container agents' memory request to their peak use.

Not the cause. The Renovate upgrade at 9fa6fd03. Helm revision 27 deployed at 12:42:16, and the 13:00 and 14:00 Renovate runs completed. The 15:00 run's first pod failed only because Gitea was down. No rollback was needed, and none was done.

What the agent did

The operator agent of #2634 followed the runbook's Triage order and Admission webhook unreachable during a node disruption. One write, step 9; everything else was read-only. No silence was set; nothing was changed in Git apart from this report.

  1. flux get kustomizations -A (15:46): mattermost not Ready with the webhook error; agent-runner-emilia-container-agent, gitea-act-runner and gitea-preupgrade Reconciliation in progress. flux get helmreleases -A: all Ready.
  2. kubectl -n cnpg-system get pods,deploy,svc,endpoints -o wide, kubectl -n cnpg-system describe pod cloudnative-pg-…: one operator replica on worker-1, 6 restarts, liveness and readiness probes timing out, NodeNotReady. kubectl logs --previous failed with TLS handshake timeout to worker-1's kubelet.
  3. kubectl get nodes, node conditions, taints, node events and lease: worker-1 NotReady ("Kubelet stopped posting node status", last heartbeat 15:41:16), unreachable taints from 15:46:31, an earlier NotReady at 14:58:58 and Ready at 15:00:36.
  4. git show --stat 9fa6fd03, flux -n flux-system events --for Kustomization/mattermost, status.lastAppliedRevision: the revision changed only components/renovate/helmrelease.yaml, and mattermost had reconciled at it at 15:34 without errors.
  5. kubectl -n cnpg-system get endpointslices -l kubernetes.io/service-name=cnpg-webhook-service: one endpoint, 10.244.2.54 on worker-1, ready=false. kubectl -n mattermost get cluster mattermost-db -o yaml | kubectl apply --dry-run=server -f - at 15:47:20: refused, no route to host. mattermost-db itself Cluster in healthy state on worker-3.
  6. The operator pod's tolerations (300 s unreachable/not-ready) and requested memory on worker-2 (77 %) and worker-3 (71 %): if worker-1 did not return, the taint manager would evict the operator at about 15:51:31, and the Deployment could reschedule its 128Mi request on either node. The agent waited rather than act. It did not treat the operator as down, although the runbook's branch for a refused dry run says so (follow-up #2637).
  7. curl $GITEA_URL/api/healthz: database:ping fail at 15:47:49. Alertmanager (kubectl -n monitoring port-forward svc/alertmanager-operated 9093) did not answer: its pod is on worker-1. Prometheus on worker-2 (port-forward svc/monitoring-kube-prometheus-prometheus 9090) gave the worker-1 memory, load, up, node_vmstat_oom_kill, node_boot_time_seconds (unchanged, no reboot), top pods by working set and Gitea probe_success used above. Pod lastState on worker-1 gave the kill times and exit codes.
  8. Watch at 30 s steps from 15:48:52 to 15:51:25: worker-1 Ready, webhook endpoint ready, both CNPG pods ready on worker-1. Server-side dry run of mattermost-db: configured (server dry run). Gitea /api/healthz pass.
  9. Write: flux -n flux-system reconcile kustomization mattermost at 15:51:33. The runbook's roll-forward step 1, a single retry once the dry run was admitted. Exit 0, applied revision main@sha1:9fa6fd03df16efc9adfc3a3f0adaaa58a87aeea7.
  10. flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false at 15:52:08: nothing. All nodes Ready.
  11. Pods on worker-1 at 15:52 and 15:53: emiliero-db-1 and terraform-state-db-1 were still restarting at 15:52 and were Ready by 15:53:45. kubectl get clusters.postgresql.cnpg.io -A: all seven Cluster in healthy state. The only pod not Ready cluster-wide was the 15:00 Renovate pod, whose Job had completed.
  12. kubectl -n renovate get jobs, pod log and helm -n renovate history renovate: the upgrade at 9fa6fd03 was healthy (see Not the cause above).
  13. Taskbase: follow-ups #2636 and #2637, and this report.

Resolution and verification

Checked at 15:52–15:54 UTC:

  • flux get kustomizations -A --status-selector ready=false: nothing; flux get kustomizations -A lists every Kustomization True.
  • flux get helmreleases -A --status-selector ready=false: nothing.
  • kubectl get nodes: all four nodes Ready; worker-1 Ready since 15:48:19.
  • Server-side dry run of Cluster/mattermost/mattermost-db: admitted.
  • kubectl get clusters.postgresql.cnpg.io -A: all seven Clusters Cluster in healthy state.
  • Gitea /api/healthz: pass; probe_success 1 since 15:48:30.

Worker-1 is still at 89 % requested memory with the same pods. Until #2543 and #2549 are applied, it can stall again the same way.

Follow-ups

  • 2636: run the CNPG operator with two replicas on different nodes, so one stalled worker no longer blocks every Cluster apply.

  • 2637: ops runbook, when the webhook's node is still NotReady, wait for the node or the eviction before treating the operator as down.

  • 2543 (owner): apply the kubelet soft-eviction patch to the hetzner-mgmt workers.

  • 2549 (owner): apply the OOMConfig to the hetzner-mgmt nodes.

  • 2407: raise the container agent runners' memory request to their peak use (here 3.3 GiB against a 1Gi request).

References

Open questions

  • What killed cilium-agent and terraform-state-db-1 with exit 137 at 15:44:41, and what stopped and restarted most of worker-1's containers at 15:48:08–15:48:25: the kernel OOM killer (node_vmstat_oom_kill rose by 4), Talos's OOM controller, or the kubelet. Talos's kernel and service logs and talosctl get oomactions on worker-1 would settle it; the agent has no Talos access (as in #2546).
  • What the agent run in miki-container-agent was doing when it grew to 3.3 GiB, and which CI job ran in the act runner from 15:38 to 15:44. The record has only the pods' memory.
  • Whether the external dead-man's switch for Alertmanager (#1533) reported Alertmanager's outage during the stalls.