2026-11-04: Seven pods on worker-2 SIGKILLed with their sandboxes during an agent run, likely by Talos's OOM controller, Gitea and Taskbase down 2 minutes¶
Kind: reference (incident report)
Severity: critical · Status: resolved (recovered on its own; the cause is not confirmed: the record points to Talos's OOM controller, and the node's logs that would confirm it or show a cri restart instead are #2546; prevention is #2547) · Resolved by: the kubelet's restart of the pods; investigated by the operator agent · Duration: 5 min of fault, 18:42:48–18:47:53 UTC (not detected by an alert; seen by the operator run of #2500) · Taskbase task: #2540
Summary¶
At 18:42:48 UTC, seven pods on worker-2 were SIGKILLed within five seconds and their pod sandboxes were recreated: Prometheus, Grafana, tasks-prod-db-1, Gitea, cilium-agent, the hcloud CSI controller and keycloak-db-1. Gitea answered 503 until 18:44:46, Taskbase answered 500 for about a minute, and Flux was not Ready until 18:47:53. The record points to Talos's userspace OOM controller, but the node's own logs, which would confirm it, need Talos access and are not read yet (#2546). The node was short of memory because an agent run in emilia-container-agent had grown to 3.3 GiB. The controller's default ranking never chooses a pod that has a pod-level memory limit; the runner was spared, and the largest pods without one were killed, nearly in the order that ranking gives.
Impact¶
- Services: Gitea (
gitea.prod.skatzi.com) answered503(upstream connect error … remote connection failure) from about 18:42:50 to 18:44:46. Taskbase's databasetasks-prod-db-1restarted, and the Taskbase API answered500: internal errorto runners from at least 18:42:51 to 18:43:29.keycloak-db-1restarted, and the CNPG clusters were healthy again by 18:46. Prometheus restarted and has no samples from 18:42:32 to 18:45:32. Grafana, the hcloud CSI controller and the Cilium agent on worker-2 restarted; the agent's endpoints were deleted and recreated. Flux: 13 Kustomizations were not Ready, in a cascade fromkeycloak, until 18:47:53. No HelmRelease was not Ready. - Users: Gitea web, API, Git and Gitea Actions, and Taskbase, were unavailable for about two minutes. Login through Keycloak was likely affected while its database restarted. Not every pod on worker-2 was hit: the 22 other running pods (e.g.
cilium-envoy,kube-proxy, MetalLB, node-exporter, cert-manager, the Flux controllers) kept their sandboxes. The agent run that used the memory, run 5138 onemilia-container-agent, was not touched. - Data: none lost as far as the record shows. Both PostgreSQL instances started on their own volumes, and every CNPG cluster reports
Cluster in healthy stateat 20:00. - Duration: 5 minutes of fault, from the first kill (18:42:48) to Flux Ready (18:47:53); Gitea down about 2 minutes. No alert fired.
Timeline¶
All times UTC. Kill times are each container's lastState.terminated.finishedAt; restart times are the pod's PodReadyToStartContainers condition. Prometheus samples are 30-second or 1-minute steps.
| Time | Event | Source |
|---|---|---|
| 18:35 | worker-2 MemAvailable 3.6 GiB; emilia-container-agent runner 259 MiB |
Prometheus |
| 18:36:11 | emilia-container-agent claims run 5138 (task #2124, eloro webshop, codex), active memory request 1536Mi, limit 4Gi; it starts the Go test suite with stripe-mock |
runner log, kube_pod_container_resource_requests |
| 18:37–18:42:30 | The runner's working set grows 303 MiB → 991 MiB → 1.9 GiB → 2.8 GiB → 3.3 GiB at about 2 cores; worker-2 MemAvailable falls 3.4 → 1.8 → 1.2 → 0.87 GiB |
Prometheus container_memory_working_set_bytes, node_memory_MemAvailable_bytes |
| 18:42:32 | Last Prometheus scrape of worker-2 before the gap | Prometheus |
| 18:42:48 | Killed: Prometheus (prometheus, config-reloader) and Grafana's grafana-sc-datasources |
lastState.terminated |
| 18:42:49 | Killed: grafana, grafana-sc-dashboard, and postgres of tasks-prod/tasks-prod-db-1 |
lastState.terminated |
| 18:42:50 | Killed: gitea of gitea-645cd4459d-dnjb7; Gitea /api/healthz starts answering 503 |
lastState.terminated, #2500 run |
| 18:42:51 | Killed: cilium-agent of cilium-kb9dd (FailedPreStopHook), after it logged "Delete endpoint request" for the pods above; the hcloud CSI controller's hcloud-csi-driver, csi-provisioner and liveness-probe (csi-resizer 18:42:52) |
lastState.terminated, #2500 run |
| 18:42:51–18:43:29 | The emilia runner gets taskbase POST /api/runners/3/session-turns/claim: 500: internal error |
runner log |
| 18:42:52 | Cilium's new sandbox on worker-2 is up | pod conditions |
| 18:42:53 | Killed: postgres of keycloak/keycloak-db-1. No more kills follow |
lastState.terminated |
| 18:43:36–18:43:53 | New sandboxes: Prometheus 18:43:36, Grafana and tasks-prod-db-1 18:43:37, keycloak-db-1 18:43:42, CSI controller 18:43:44, Gitea 18:43:53 |
pod conditions |
| 18:44:46 | Gitea /api/healthz answers 200 again |
#2500 run |
| 18:45:32 | Prometheus scrapes worker-2 again; MemAvailable 3.4 GiB at 18:46, runner 800 MiB |
Prometheus |
| ~18:46 | CNPG clusters healthy | #2500 run |
| 18:47:53 | Resolved: every Kustomization Ready, no HelmRelease not Ready | #2500 run |
| 19:55–20:00 | operator agent (#2540) investigates (What the agent did) |
this report |
Root cause¶
Not confirmed. The cause below is inferred from the cluster's record; the node's logs that would confirm it are not read yet (#2546). Until they are, it is the likeliest mechanism, not a finding.
The likely mechanism: Talos's userspace OOM controller. Since upstream commit 251df70f6d (September 2025), and so in the Talos v1.13.2 the nodes run, machined's controller runtime runs runtime.OOMController. Every 500 ms it reads memory pressure (PSI) and evaluates a trigger expression. When the trigger fires, it ranks the cgroups under kubepods/{besteffort,burstable,guaranteed}, podruntime and system, and writes 1 to cgroup.kill of the one with the highest score. That kills every process in the pod cgroup, the sandbox's pause included. The kubelet then finds the sandbox dead (SandboxChanged) and creates a new one. The hetzner-mgmt nodes run Talos v1.13.2 with no OOMConfig document in Git, so the defaults apply (pkg/machinery/constants/constants.go, controllers/runtime/oom.go, controllers/runtime/internal/oom/oom.go):
trigger: (multiply_qos_vectors(d_qos_memory_full_total, {System: 8.0, Podruntime: 4.0}) > 3000.0 &&
multiply_qos_vectors(qos_memory_full_avg10, {System: 1.0, Podruntime: 1.0}) > 5.0) ||
(memory_full_avg10 > 75.0 && time_since_trigger > duration("10s"))
ranking: memory_max.hasValue() ? 0.0 :
{Besteffort: 1.0, Burstable: 0.5, Guaranteed: 0.0, Podruntime: 0.0, System: 0.0}[class] *
double(memory_current.orValue(0u))
A cgroup with a memory.max scores 0. The kubelet sets a pod-level memory.max only when every container of the pod, init containers included, has a memory limit.
What the record shows, and why it fits:
- The signature. Every killed container ended with exit 137, reason
Error, notOOMKilled. The whole sandbox was recreated (newPodReadyToStartContainers), the kills came one pod at a time over five seconds, and the node stayedReady. There was no kernel OOM kill (node_vmstat_oom_killstayed at 128), no reboot (node_boot_time_secondsunchanged since 2026-07-02), and no kubelet restart (process_start_time_secondsunchanged since 2026-10-21 16:03:53). That rules out the kernel's OOM killer, a reboot and a kubelet restart. It does not rule out a restart of thecriservice (the containerd that runs the pods): its start time is not on record, because the kubelet's cAdvisor reports no/podruntime/runtimecgroup and nothing scrapes containerd. What speaks against acrirestart is that only seven of the 29 running pods lost their sandboxes, and that the seven were the largest pods without a pod-level limit; a runtime restart would not choose pods by memory.talosctl service criand its log settle it (#2546). - Memory pressure at that moment. worker-2 (cx33, 8 GB, 7.08 GiB allocatable) had 0.87 GiB available at 18:42:30, after the agent run grew by about 3 GiB in five minutes. The node-exporter memory PSI shows no stall up to 18:42:30, and no samples exist from 18:42:32 to 18:45:32 (Prometheus was one of the pods killed), so the trigger itself is not on record.
- The kill order follows the ranking. Pod cgroup memory (
container_memory_usage_bytes{container=""}, the samememory.currentthe controller reads) at 18:42:30, with each pod's score under the default expression:
| Pod | QoS | Pod-level memory.max |
memory.current |
Score | Killed |
|---|---|---|---|---|---|
agent-runners/emilia-container-agent |
Burstable | yes (all containers and init containers limited, 4Gi runner) |
3395 MiB | 0 | no |
monitoring/prometheus-…-0 |
Burstable | no | 822 MiB | 411 | 1st, 18:42:48 |
monitoring/…-grafana |
Burstable | no | 429 MiB | 215 | 2nd, 18:42:48–49 |
gitea/gitea-645cd4459d-dnjb7 |
Burstable | no (init containers unlimited) | 286 MiB | 143 | 4th, 18:42:50 |
tasks-prod/tasks-prod-db-1 |
Burstable | no (plugin-barman-cloud init unlimited) |
279 MiB | 140 | 3rd, 18:42:49 |
kube-system/cilium-kb9dd |
Burstable | no | 216 MiB | 108 | 5th, 18:42:51 |
kube-system/…-hcloud-csi-controller |
BestEffort | no | 100 MiB | 100 | 6th, 18:42:51 |
keycloak/keycloak-db-1 |
Burstable | no (plugin-barman-cloud init unlimited) |
139 MiB | 70 | 7th, 18:42:53 |
flux-system/kustomize-controller, cilium-envoy, metallb-controller, … |
no | ≤ 76 MiB | ≤ 38 | no |
The order matches, except that Gitea and tasks-prod-db-1 swapped. Their scores were 3 points apart 18 seconds before the kills. The next candidate scored about half of keycloak-db-1, and the kills stopped once seven pods had freed about 2.3 GiB.
Why it hit the platform and not the run, if it was the controller. The pressure came from run 5138 in emilia-container-agent, which stayed inside its own 4Gi limit, while the scheduler counted it at its 1536Mi request. A runner pod has limits on every container, so the default ranking gives it 0 and never chooses it. The pods that do get ranked are the ones with at least one unlimited container: Prometheus, Grafana, Cilium, and Gitea and the CNPG clusters through their init containers. Under the default ranking the controller cannot free memory from the pod that is using it, so it takes the platform's databases, CNI and Git server instead. A second effect of the code: OomAction picks the highest score starting from -Inf. If every candidate scores 0, it kills an arbitrary cgroup, which can be in podruntime or system.
Not confirmed on the node. Talos records each action (OOMAction resources, talosctl get oomactions, the last 50, in memory) and logs OOM controller triggered and Sending SIGKILL to cgroup in the controller-runtime service log, not in machined (Talos v1.13.2 creates the controller logger with MakeLogger("controller-runtime"), as the #2547 run found). The operator agent has no Talos access (kubectl get --raw /api/v1/nodes/<node>/proxy/logs/ gives only pod logs). #2546 asks the owner to read them.
Compared with worker-3 earlier the same day (report, #2490). Both incidents started with a runner pod that grew by about 3 GiB inside a limit far above its request, on an 8 GB worker. On worker-3 the node stopped reporting for six minutes, with no kills, and the taint manager evicted the pods. On worker-2 the node kept reporting, and pods were killed within seconds, likely by the OOM controller. Why the controller did not act on worker-3 (or did and could not help) is not on record; the OOM action log of 10.0.0.22 would tell.
Compared with worker-1 on 2026-10-28 (report, #2048). That incident has the same signature: exit 137 Error, sandboxes recreated one after another over two seconds, no kernel OOM kill, node Ready. The pods hit were also unlimited ones: Gitea, the act runner, cilium-agent, cilium-envoy and the CSI node plugin. worker-1 then had 4.4 GB available, so if it was the controller, its PSI trigger fired without low memory, possibly because of the CI jobs that ran outside the pod cgroup at the time (#2256). This is a hypothesis; #2546 also asks for worker-1's action log.
Not the cause. No Helm release changed: the newest revision on the cluster is from 2026-11-03 17:52 (helm list -A). The commits to main between 18:20 and 18:45 were docs and one image update, a510a4c8 at 18:41:21, which moved platform-docs to v1.113.9. That update explains the platform-docs restart #2500 saw, and it touches none of the killed pods. The act-runner change of #2498 (ed885647) merged at 18:47:15, after the kills. The openbao-0 exit 137 at 15:12:12 on worker-2 was a single container restart: its sandbox dates from 2026-11-03.
What the agent did¶
The operator agent of #2540. All steps were read-only. Nothing was changed in the cluster, in Alertmanager or in Git; no silence was set.
- Read #2540, the reports of #2490 (worker-3) and #2043 (worker-1), the ops runbook's Worker stalled section, and tasks #2048, #2498, #2407 and #2409.
kubectl get nodes -o wide: all four nodesReady, Talos v1.13.2, containerd 2.2.3.talosctlis not installed on the runner, and there is no talosconfig.kubectl get pods -A --field-selector spec.nodeName=worker-2 -o json(each container'slastState.terminatedand thePodReadyToStartContainerstime): only seven sandboxes were recreated, with the kill times above. The 22 other running pods on the node kept theirs. This corrects the task's "every pod".- The same query for each pod's QoS class and memory limits, init containers included: the runner pod is fully limited, and the seven killed pods are not.
- Prometheus (
kubectl -n monitoring port-forward svc/monitoring-kube-prometheus-prometheus 9090, queries only, stopped afterwards):node_boot_time_seconds,node_vmstat_oom_kill,node_memory_MemAvailable_bytes,node_pressure_memory_stalled_seconds_total,node_pressure_io_stalled_seconds_totalandupfor 10.0.0.21; the kubelet'sprocess_start_time_seconds; top pods bycontainer_memory_working_set_bytesat 18:35 and 18:42:30; pod cgroupcontainer_memory_usage_bytes{container=""}at 18:42:30; the emilia runner's memory, CPU andkube_pod_container_resource_requestsfrom 18:20 to 18:52. The results are in the timeline and root cause above. kubectl -n agent-runners logs emilia-container-agent-595985b45b-9b5zh -c runnerand-c resizer, from 18:30: run 5138 (task #2124) claimed at 18:36:11, its Go tests, and the Taskbase500s at 18:42:51–18:43:29.- Read Talos v1.13.2's OOM controller source (
oom.go,internal/oom/oom.go, the default expressions inconstants.go) and the ranking it implies.grepofterraform/for anOOMConfig: none. - Checked the 15:12
openbao-0restart (sandbox from 2026-11-03, not part of this) and the Renovate pod on worker-2 (Succeededat 17:13, not running). helm list -A: the newest release revision is from 2026-11-03 17:52.git log origin/mainfrom 18:20 to 18:50: docs, theplatform-docsimage (18:41:21) and the #2498 act-runner merge (18:47:15, after the kills). State after, at 20:00:flux get kustomizations -A --status-selector ready=falseandflux get helmreleases -A --status-selector ready=falselist nothing; all nodesReady;curl https://gitea.prod.skatzi.com/api/healthzgives200; all seven CNPG clustersCluster in healthy state.- Taskbase: follow-ups #2546, #2547 and #2548, and this report.
- After review (round 1):
kubectl get --raw /api/v1/nodes/worker-2/proxy/metrics/cadvisor, to look for the start time of thecriservice's cgroup. cAdvisor reports/podruntime/kubeletand/system/*but no/podruntime/runtime, so acrirestart can be neither shown nor ruled out from the cluster. Added thecriservice's events and log to #2546.
Resolution and verification¶
Recovered without intervention: the kubelet recreated each sandbox within a minute, Gitea answered at 18:44:46, and Flux was Ready at 18:47:53 (observed by the operator run of #2500). Checked again at 20:00 UTC by #2540: no Kustomization or HelmRelease not Ready, all nodes Ready, Gitea /api/healthz 200, every CNPG cluster healthy. The mechanism stays unconfirmed until #2546 reads the node's logs. If it is the OOM controller, it will recur on any worker until #2547 lands: whenever a fully limited pod pushes a node short of memory, the platform's unlimited pods are killed instead.
Follow-ups¶
-
2546 — the owner reads
talosctl get oomactions, thecontroller-runtimeOOM log and thecriservice's events and log of worker-2, and of worker-1 for #2048, to confirm the mechanism or find another.¶ -
2547 — if #2546 confirms the controller, make the pod that causes the pressure the one it kills: a Talos
OOMConfigranking, the runner requests (#2407), or limits on the init containers; the owner applies the Talos change.¶ -
2548 — ops runbook: a section for pods SIGKILLed with their sandbox and no kernel OOM.¶
-
2407 — raising the container agent runners' working memory request; still open, and this incident is a second input to it.¶
References¶
- Alert: none fired (
ProbeFailedneeds a longer failure, and Prometheus itself was restarting) - Taskbase incident task: #2540, seen by the
operatorrun of #2500 - Runs: agent run 5138 (task #2124) on
emilia-container-agent; theoperatorrun of #2500 - Pull requests: this report's pull request
- Related: worker-3 memory stall (#2490, #2498), worker-1 SIGKILLs (#2043, #2048), owner capacity decision #2409, worker-1 capacity
- Runbook sections: ops runbook, Worker stalled: a StatefulSet pod waits for its volume to detach (the nearest section for a node stall), Pods SIGKILLed with their sandbox, no kernel OOM (this failure, #2548)
Open questions¶
- Did Talos's OOM controller record these seven kills?
talosctl -n 10.0.0.21 get oomactionsand thecontroller-runtimelog settle it (#2546). Until then the cause rests on the signature, the memory record and the kill order, and is not confirmed. - Did the
criservice (containerd) restart at 18:42? The kubelet's start time does not show it.talosctl -n 10.0.0.21 service cri(its events) andtalosctl -n 10.0.0.21 logs criaround 18:42 settle it (#2546). - Which clause of the trigger fired? The node's PSI from 18:42:32 to 18:45:32 was not recorded, because Prometheus was killed. The action log's
TriggerContexthas it. - Was worker-1's 2026-10-28 kill the same controller, with 4.4 GB available? And why did it not act on worker-3 at 17:16? The action logs of 10.0.0.20 and 10.0.0.22 would tell, if they still hold them.
- Why did run 5138's Go test suite need 3.3 GiB? That is for the eloro webshop project, not the platform; the runner limit held.