Skip to content

2026-11-04: worker-3 stalled under a CI job's memory, Gitea down 13 minutes

Kind: reference (incident report)

Severity: critical · Status: resolved (recovered on its own; the overcommit that caused it is #2498) · Resolved by: recovered on its own; verified by the operator agent · Duration: 0:08 from detection to resolution, 17:22–17:30 UTC (fault from 17:17, 13 min) · Taskbase task: #2490

Summary

At 17:13 UTC a release image build of eloro/webshop-platform started on the Gitea act runner pod on worker-3, and the pod's dind grew to 2.85 GiB. The node ran short of memory, and from about 17:16:30 to 17:22:54 it stopped reporting, without an OOM kill or a reboot. Gitea's database, gitea-postgresql-0, ran on worker-3, so Gitea's /api/healthz failed from 17:17. When the taint manager evicted the database pod at 17:22, its replacement on worker-1 waited until 17:29:32 for the Hetzner volume to detach, and Gitea answered again at 17:30. Nothing was changed in the cluster or in Git.

Impact

  • Services: Gitea (gitea.prod.skatzi.com) could not reach its database from 17:17:17 to 17:30:06, so /api/healthz failed and requests that need the database failed. probe_success was 0 from 17:17:00 to 17:30:00. Every pod on worker-3 lost its node for about 6 minutes; of those, the Gitea database and act runner gitea-act-runner-7b74df78c5-r24hg were evicted and recreated, and the evictions of the rest (keycloak-0, mattermost-db-1, tasks-db-1 in tasks-dev, emiliero-db-1, terraform-state-db-1, Grafana, image-reflector-controller) were cancelled when the node came back. On control-plane-1, kube-apiserver, kube-controller-manager and kube-scheduler restarted at about 17:23–17:24; the record does not show why (see Open questions). From about 17:33 to 17:38, Flux Kustomizations went not Ready one after another on DependencyNotReady while they reconciled after these restarts.
  • Users: Gitea web, API, Git over HTTPS and SSH, and Gitea Actions were unavailable for 13 minutes, and so was anything that clones from Gitea (agent runs, Flux's platform source). The release job of eloro/webshop-platform v1.88.0 (run 9474, job image, on gitea-act-runner-7b74df78c5-r24hg-2) was lost with the runner and ended failure at 17:32:29; the release has to be run again. The act runner on worker-1 (28rz6) has 5 restarts, the last at about 17:22, while Gitea was down.
  • Data: none lost as far as the record shows. gitea-postgresql-0 was killed at 17:22:50 and started on the same volume (gitea-database-pv) on worker-1 at 17:29:59. Gitea answered normally from 17:30.
  • Duration: 8 minutes from detection (ProbeFailed firing at 17:22:03) to resolution (17:30). The fault began at 17:17, so 13 minutes in all.

Timeline

All times UTC. Prometheus samples are 30-second or 1-minute steps.

Time Event Source
17:00 worker-3 MemAvailable 3.7 GiB; dind of gitea-act-runner-7b74df78c5-r24hg 0.18 GiB Prometheus
17:12 67 % of worker-3's allocatable memory is requested Prometheus kube_pod_container_resource_requests
17:13:06 eloro/webshop-platform run 9474 (release v1.88.0), job image, starts on gitea-act-runner-7b74df78c5-r24hg-2 Gitea Actions API
17:15–17:16 dind of r24hg grows from 1.42 GiB to 2.85 GiB; worker-3 MemAvailable falls from 2.7 GiB to 1.0 GiB and memory pressure stalls rise Prometheus container_memory_working_set_bytes, node_memory_MemAvailable_bytes, node_pressure_memory_stalled_seconds_total
~17:16:30 worker-3 stops answering: node-exporter on 10.0.0.22 has no samples until 17:23:30. No OOM kill (node_vmstat_oom_kill stays at 610), no reboot (node_boot_time_seconds unchanged) Prometheus
17:17:00 probe_success of https://gitea.prod.skatzi.com/api/healthz drops to 0 Prometheus
17:17:17 Gitea logs its first database error, i/o timeout kubectl -n gitea logs gitea-645cd4459d-dnjb7
17:17:28 NodeNotReady on gitea-postgresql-0 gitea events
17:22:03 Detected: ProbeFailed for Gitea, critical, firing (#2490, created 17:23:33) Alertmanager, Taskbase
17:22:27 Taint manager marks gitea-postgresql-0 and gitea-act-runner-7b74df78c5-r24hg for deletion (the 300 s not-ready toleration has run out), as it does for pods in other namespaces events TaintManagerEviction
17:22:42–17:22:50 worker-3's kubelet is back: the database's probes time out, then it stops the container (Killing) gitea events
17:22:54 worker-3 Ready again node conditions lastTransitionTime
17:22:57–17:22:58 Eviction "cancelled", but the pod is already gone; the StatefulSet creates a new gitea-postgresql-0 on worker-1; FailedAttachVolume … Volume is already exclusively attached to one node, waiting on detach gitea events
~17:23–17:24 kube-apiserver, kube-controller-manager and kube-scheduler on control-plane-1 restart; control-plane-1 MemAvailable falls to 1 % at 17:28 kubectl -n kube-system get pods, Prometheus
17:29:32 gitea-database-pv attached on worker-1 gitea events
17:29:59 gitea-postgresql-0 container started gitea events
17:30:06 Gitea's last database error, connection refused Gitea log
17:30:30 Resolved: probe_success back to 1 Prometheus
17:32:29 Run 9474 job image ends failure (its runner was evicted) Gitea Actions API
17:33:33 Alertmanager sends the resolved notification to Taskbase #2490 comment
17:33–17:43 operator agent (#2490) confirms the alert no longer fires and finds the cause (What the agent did) this report

Root cause

The trigger. A CI job on the mgmt act runner used more memory than its node had free. components/gitea/act-runner/deployment.yaml gives the dind sidecar a memory request of 1536Mi and a limit of 6Gi. It runs the jobs of two runners, each capped at --memory=2816m (#2256, platform PR #1086). So the scheduler counts 1.5 GiB for a pod that can legitimately use about 6 GiB. worker-3 is a cx33 (8 GB) with 67 % of its memory already requested. When the release image build took dind to 2.85 GiB, the node had about 1 GiB left. It did not OOM-kill anything. Instead, the kubelet and node-exporter stopped answering for about 6 minutes, the pattern of a node thrashing under memory pressure. The node logs that would settle this need Talos access and were not read (Open questions). The owner decided on 2026-11-03 to add no capacity for now (#2409), and to decide again "if a worker can no longer reschedule its pods"; this incident is one input to that.

Why it lasted 13 minutes, not 6. Gitea itself, on worker-2, kept running. Its database was on worker-3. When the node had been NotReady for 300 s, the taint manager evicted the pods on it. The kubelet came back four seconds before the eviction was cancelled, and it stopped the database container in that window, so the pod was deleted anyway. The StatefulSet then scheduled the new pod on worker-1, where the Hetzner volume could attach only once its attachment to worker-3 had been released (17:22:58–17:29:32). Had the eviction not run, the database would most likely have been reachable again at about 17:23, when worker-3 returned.

Not the cause. No change in Git: the cluster stayed at main@a6ea6993, Gitea's Helm release is at revision 7 (gitea-12.7.0, deployed, 2026-11-03). No upgrade, gate or deploy ran in the window.

What the agent did

The operator agent of #2490, following the incident rules (check that the alert still fires first) and the read-only checks of the ProbeFailed runbook. All checks were read-only. Nothing was changed in the cluster, in Alertmanager or in Git; no silence was set.

  1. kubectl -n monitoring port-forward svc/alertmanager-operated 9093, then curl -sG localhost:9093/api/v2/alerts --data-urlencode 'filter=alertname="ProbeFailed"' at 17:34: []. curl localhost:9093/api/v2/silences: no silences at all. The alert no longer fired and nothing was hiding it.
  2. Prometheus (kubectl -n monitoring port-forward svc/monitoring-kube-prometheus-prometheus 9090): probe_success{instance="https://gitea.prod.skatzi.com/api/healthz"} was 1 for both probes (gitea-api and the agent-runners probe). The last 40 minutes showed 0 from 17:17 to 17:29 and 1 from 17:30. curl https://gitea.prod.skatzi.com/api/healthz: 200 in 0.07 s.
  3. kubectl -n gitea get pods -o wide, helm -n gitea history gitea, kubectl -n gitea get events: Gitea on worker-2 not restarted (age 30 h). gitea-postgresql-0 was new on worker-1 (11 min old). Helm revision 7 unchanged since 2026-11-03. The events gave the eviction and volume timeline above.
  4. flux get kustomizations -A --status-selector ready=false at 17:34: 17 not Ready, all DependencyNotReady along the chain keycloak-database → keycloak → prometheus-stack / gitea / harbor → … . The roots were already turning Ready (cloudnative-pg at 17:34:02), so the agent waited instead of acting. At 17:38:42 both flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false listed nothing.
  5. kubectl get nodes, node events, kubectl -n kube-system get pods: all nodes Ready. kube-apiserver (1 restart), kube-controller-manager and kube-scheduler (9 each) on control-plane-1 had last restarted 10 minutes earlier. Repeated RegisteredNode events came from the controller-manager restarts.
  6. Prometheus, 17:00–17:34: node-exporter on 10.0.0.22 (worker-3) down 17:17–17:23; kube_node_status_condition{node="worker-3",condition="Ready"} 0 from 17:18 to 17:22; worker-3 MemAvailable and the top pods by working set (the r24hg dind above); node_vmstat_oom_kill and node_boot_time_seconds unchanged; requested memory on worker-3 at 17:12.
  7. kubectl -n gitea get deploy gitea-act-runner -o jsonpath=…: dind requests cpu 1, memory 1536Mi, limits cpu 2, memory 6Gi, the same as Git.
  8. Gitea Actions API (/api/v1/orgs/{org}/actions/runs, /repos/eloro/webshop-platform/actions/runs/{id}/jobs): run 9474, job image, on gitea-act-runner-7b74df78c5-r24hg-2 from 17:13:06, failure at 17:32:29.
  9. kubectl -n gitea logs gitea-645cd4459d-dnjb7 --since=40m: 534 database errors between 17:17:17 (i/o timeout) and 17:30:06 (connection refused).
  10. 17:42–17:43: openbao, then agent-runner-emilia-container-agent, cnpg-barman-cloud and harbor-secrets showed DependencyNotReady for a moment each. Their dependencies (openbao-preupgrade, external-secrets-config, cert-manager) were ReconciliationSucceeded at main@a6ea6993, and none of the 66 Kustomizations was failing for any other reason. This was the ordinary reconcile churn, not a freeze.
  11. Taskbase: follow-ups #2498 and #2499, and this report.

Resolution and verification

Recovered without intervention. Checked between 17:34 and 17:43 UTC:

  • Alertmanager: no ProbeFailed alert, active or suppressed, at 17:34 and again at 17:42; no silences.
  • probe_success for Gitea's healthz 1 since 17:30:30; curl https://gitea.prod.skatzi.com/api/healthz: 200 at 17:34 and 17:42.
  • kubectl get nodes: all four nodes Ready; worker-3 Ready since 17:22:54, MemAvailable 4.4 GiB at 17:34.
  • flux get helmreleases -A --status-selector ready=false: nothing. flux get kustomizations -A --status-selector ready=false: nothing at 17:38:42. After 17:42, only short DependencyNotReady entries whose dependencies were Ready (step 10).

Follow-ups

  • 2498 — keep one CI job from stalling a worker: bring the act runner dind memory request and limit in line with what a node can give it, within the owner's capacity decision #2409.

  • 2499 — ops runbook: a worker stalls, its StatefulSet pods are evicted and wait for the volume to detach; link it from the ProbeFailed runbook.

  • For eloro/webshop-platform: run 9474 (release v1.88.0) failed only because its runner was evicted. Re-run its image job.

References

  • Alert: ProbeFailed (runbook)
  • Taskbase incident task: #2490
  • Runs: the operator run of #2490
  • Pull requests: this report's pull request; the runner limits are from platform PR #1086 (#2256)
  • Related: #2409 (owner: no new capacity for now), #2262 (a week of runner jobs under the pod cgroup), #2048 (node logs of the similar 2026-10-28 kills on worker-1, report), worker-1 capacity
  • Runbook sections: ops runbook, pod stuck on a volume that stopped completing I/O (the "never detach" rule applies here too)

Open questions

  • What exactly stalled worker-3's kubelet for 6 minutes without an OOM kill? The Prometheus record fits memory thrashing, but only the node's kernel and kubelet logs (talosctl dmesg, talosctl logs kubelet) can confirm it, as for #2048.
  • Why kube-apiserver, kube-controller-manager and kube-scheduler on control-plane-1 restarted at about 17:23–17:24, and whether control-plane-1's low memory (1 % available at 17:28; the 2026-11-03 report saw NodeHighMemoryUsage on 10.0.0.10 firing since 2026-10-27, though it was not among the alerts at 17:38 today) played a part. The agent did not read their previous logs.
  • Why the image job used 2.85 GiB in dind (one job's cap is --memory=2816m), and whether the second runner in the same pod was busy too.