Skip to content

2026-11-05: Act runner pod evicted at its 36Gi ephemeral-storage limit, one CI job killed

Kind: reference (incident report)

Severity: warning · Status: resolved (the replacement pod ran 25 seconds after the eviction; pull request #1246, merged 23:12, bounds the cache at 4 GiB; the alert resolved at 02:51 on 11-06) · Resolved by: operator agent · Duration: 0:00 from detection to mitigation: the replacement was Ready at 22:36:55 UTC, before the alert fired at 22:42:03 · Taskbase task: #2614

Summary

At 22:36:30 UTC the kubelet on worker-3 evicted Gitea act runner pod gitea-act-runner-7f77c596bc-5rl5n because the pod used more than its 36Gi of ephemeral storage. After 27 hours and an evening of eloro/webshop-platform pipelines, the pod's /var/lib/docker stayed at up to 25 GiB even after the trim, and its actions/cache held up to 8 GiB. That left about 2 GiB for the next job's pulls and build. The eviction killed one running job. The ReplicaSet's replacement pod was Ready on the same node 25 seconds later. The fix bounds the cache at 4 GiB instead of 8.

Impact

  • Services: Gitea Actions on hetzner-mgmt. Both runners in the pod (…-5rl5n and …-5rl5n-2) went away; the other runner pod (-d952x, worker-1) kept running. The replacement -zbhvd was Ready at 22:36:55. worker-3 was not short of disk: its /var peaked at 52.3 of 72.3 GiB (28 % free).
  • Users: job 31098 (e2e (2) of eloro/webshop-platform run 9861, "chore(deps): update demo shop images", a pull request run) was killed; Gitea's zombie-task cleanup marked it failure at 22:48:34, and the pull request's author has to rerun it. Job 31092 (test) finished as success at 22:36:32, just before.
  • Data: none. The pod's emptyDirs held only Docker images, job layers and actions/cache entries.
  • Duration: the eviction at 22:36:30; the replacement Ready at 22:36:55; PodEvicted fired at 22:42:03 (5 minutes after the eviction, as designed).

Timeline

All times UTC. Disk figures are worker-3's /var used (node-exporter, 30-second steps).

Time Event Source
11-04 19:11 gitea-act-runner-7f77c596bc-5rl5n starts on worker-3 pod startTime
11-05 20:02–22:36 Back-to-back eloro/webshop-platform pipelines on both of its runners (image, test, e2e, security, lint) Gitea admin/actions/jobs
22:13:51 The other runner pod (-d952x, worker-1) after a trim: Pruned images, 25.4G left dind log of -d952x
22:26–22:29:30 worker-3 /var 38.6 → 48.4 GiB as jobs start; a trim brings it back to 40.8 at 22:30:30 Prometheus
22:29:50 Job 31098 (e2e (2)) starts on …-5rl5n-2 Gitea
22:35:00–22:36:30 worker-3 /var 48.1 → 52.3 GiB Prometheus
22:36:30 Kubelet evicts the pod: "Pod ephemeral local storage usage exceeds the total limit of containers 36Gi." (kubelet_evictions{eviction_signal="ephemeralpodfs.limit"} on worker-3) event Evicted
22:36:34 Replacement gitea-act-runner-7f77c596bc-zbhvd created on worker-3; Ready at 22:36:55 pod conditions
22:37:30 worker-3 /var at 18.6 GiB Prometheus
22:42:03 Detected: PodEvicted (warning) fires Alertmanager
22:43:03 Taskbase incident #2614 created Taskbase
~22:45 operator agent: the alert still fires, unsilenced; read-only checks of the runbook run report
22:48:34 Gitea marks job 31098 failure (zombie-task cleanup) Gitea actions/jobs/31098
~22:55 Pull request #1246: CACHE_LIMIT_MB 4096 on dind, this report pull request
23:12:35 #1246 merged; #2614 closed Git, Taskbase
23:22:07–23:29:34 Runner pods gitea-act-runner-56b45b58f-* with the 4 GiB bound roll out and are Ready pod conditions
11-06 02:48:03 Alertmanager's 4 h repeat of the same alert (startsAt 22:42:03 unchanged) reopens #2614 Taskbase comment
02:48:39 Second operator run: the alert still active, unsilenced; no new eviction Alertmanager
~02:50 Evicted Pod object gitea-act-runner-7f77c596bc-5rl5n deleted run report
~02:51 PodEvicted no longer in Alertmanager Alertmanager

Root cause

The runner pod's ephemeral storage is bounded in three ways (CI Runners § Disk): trim.sh prunes /var/lib/docker once it is over 16 GiB, but keeps every image a job used in the last 3 hours and cannot touch the layers of running job containers; it removes the oldest actions/cache entries past 8 GiB; and the kubelet evicts the pod over its 36Gi total limit.

The sizing assumed /var/lib/docker near 16 GiB after a trim ("13–16 GB measured 2.7 hours after a rollout"). On a busy day it was not. The other pod, which ran the same 27 hours, had /var/lib/docker at up to 25.4 GiB after a trim. That was 9.2 GB of images (5 of 9 in use) and 7.8 GB of layers of the 5 running job containers (docker system df). Its act-cache was at 7.5–8 GiB in about ten entries of 1.3–1.5 GB, a new one every 20–30 minutes. That makes 25.4 + 8 + 0.7 (the runners' own layers) = ~34 GiB of 36 GiB right after a trim. Starting a job added 4–10 GiB within minutes on worker-3 (22:26–22:29, 22:35–22:36), more than the ~2 GiB left. The pods are no longer there to show which job wrote what. The limit did its job: the pod was evicted before the node ran short.

What the agent did

Following the PodEvicted runbook. The first run made no write to the cluster; the second made one, the deletion of the evicted Pod object (step 13). No flux or helm write, no silence.

  1. kubectl -n monitoring port-forward svc/alertmanager-operated 9093, then curl -sG localhost:9093/api/v2/alerts --data-urlencode 'filter=alertname="PodEvicted"': alert f9eaa80ae2e49a3d active, silencedBy empty; GET /api/v2/silences: no active silence.
  2. kubectl -n gitea get pod gitea-act-runner-7f77c596bc-5rl5n -o jsonpath='{.status.message}': "Pod ephemeral local storage usage exceeds the total limit of containers 36Gi." It was on worker-3, Failed, and its containers could no longer be found (no logs).
  3. kubectl -n gitea get events: Evicted at 22:36:30; 8 readiness probes timed out on docker info between 12:09 and 22:04, a busy dockerd rather than a fault; replacement -zbhvd scheduled and started.
  4. kubectl get pods -A --field-selector=status.phase=Failed: no other evicted pod; kube_pod_status_reason{reason="Evicted"} == 1: only this pod. kubelet_evictions: worker-3 ephemeralpodfs.limit, workers 1 and 2 imagefs.available at their initial 1.
  5. Prometheus node_filesystem_size_bytes - node_filesystem_avail_bytes{mountpoint="/var"} on worker-3, 11-04 18:00 to 11-05 22:50: the figures in the timeline.
  6. Gitea GET /api/v1/admin/actions/jobs (last pages): the jobs on …-5rl5n and …-5rl5n-2 since 20:00; job 31098 still in_progress.
  7. kubectl get --raw /api/v1/nodes/{worker-1,worker-3}/proxy/stats/summary: -d952x 27.6 GB (docker-data 19.35, act-cache 7.5, runners 0.36 each); -zbhvd 6.4 GB.
  8. kubectl -n gitea logs --timestamps gitea-act-runner-7f77c596bc-d952x -c dind: 42 Pruned images lines, the highest 25.4G left at 22:13:51; regular Removed cache entry lines.
  9. kubectl -n gitea exec gitea-act-runner-7f77c596bc-d952x -c dind -- docker system df and find /act-cache … -exec ls -l, read only: the figures in Root cause.
  10. Pull request #1246: CACHE_LIMIT_MB: "4096" on the dind container in components/gitea/act-runner/deployment.yaml; the Disk section of the CI Runners page; this report. test_trim.py: 19 tests OK.

Second run, after Alertmanager's repeat reopened #2614 at 02:48 on 11-06:

  1. curl -sG localhost:9093/api/v2/alerts --data-urlencode 'filter=alertname="PodEvicted"': the same alert f9eaa80ae2e49a3d, startsAt 22:42:03, active, silencedBy empty. A repeat, not a new eviction: the rule holds an eviction for 6 hours.
  2. kubectl get pods -A --field-selector=status.phase=Failed: only the evicted pod. The two runner pods of #1246 (56b45b58f-rwcwb on worker-1, -vrb4t on worker-3) Running 3/3 for 3.5 hours, 12.6 and 12.8 GB of ephemeral storage (stats/summary); worker-1 and worker-3 /var 39 and 43 GiB free; dind logs Cache at 3811M of 4096M and Cache at 4079M of 4096M. flux get kustomizations -A: gitea-act-runner Ready at main@sha1:7ef511c2.
  3. Write: kubectl -n gitea delete pod gitea-act-runner-7f77c596bc-5rl5n (exit 0), the runbook's last step: the pod was replaced and the cause fixed, and it held no data (emptyDirs, ConfigMaps and Secrets only, no PersistentVolumeClaim). Without it the alert would have fired until 04:36 and its next repeat could have reopened #2614 a second time, which marks an incident flapping.
  4. The same Alertmanager query a minute later: no PodEvicted alert; no alert in gitea.

Resolution and verification

Mitigated by the ReplicaSet: -zbhvd Ready at 22:36:55, 3/3 containers running, next to -d952x on worker-1. No other pod was evicted (kubectl get pods -A --field-selector=status.phase=Failed). The cause is addressed by pull request #1246: with 4 GiB of cache, the same pod after a trim holds about 30 GiB of its 36 GiB, leaving ~6 GiB for a job's start instead of ~2. Merging restarts both runner pods one at a time (the dind env changes). The evicted Pod object, which held no data, was deleted at ~02:50 on 11-06 and PodEvicted resolved a minute later. At that point the pods with the 4 GiB bound had run 3.5 hours at 12.6–12.8 GB of their 36Gi, their caches at the bound.

Follow-ups

  • 2615 measures the runner pods after a busy day with the 4 GiB bound, and

    raises the ephemeral-storage limits once #2413 has lowered worker-1's baseline if 6 GiB proves too little.
  • 2413: earlier kubelet image GC on the workers (owner, talosctl), which a higher pod limit needs on worker-1.

  • 2414: its question (does the trim remove anything after a busy day?) is answered in the CI Runners page's

    check of 2026-11-05: yes, but /var/lib/docker stays above 16 GiB while jobs run.

  • 2619 (Taskbase): Alertmanager's repeat of the alerts an incident closed with reopened #2614,

    because the fix merged while PodEvicted was still inside its 6-hour hold. Reopen only on a new fingerprint or a later startsAt.

References

Open questions

  • Which job wrote the last 4 GiB before the eviction: the evicted pod's containers and logs were gone, and no metric has per-pod ephemeral storage on this cluster.
  • Whether 4 GiB of cache is enough for the webshop jobs' hit rate: actions/cache only warns on a miss, so the follow-up looks at job durations.