2026-10-31: worker-3 starved of CPU by CI jobs, CNPG webhook unreachable for taskbase-prod¶
Kind: reference (incident report)
Severity: warning · Status: mitigated · Resolved by: Flux's own retry; investigated by the operator agent · Duration: 5 min 1 s from detection to resolution, 01:23:57–01:28:58 UTC (worker-3 under CPU saturation from 2026-10-30 ~20:30) · Taskbase task: #2254
Summary¶
On hetzner-mgmt, worker-3 ran at up to 100 % CPU, and at 01:23 its Cilium agent, the CNPG operator, the
Flux controllers and other pods on the node lost their API connections and restarted. In those seconds
the CNPG admission webhook, served from worker-3, was unreachable (no route to host). The periodic
reconcile of flux-system/taskbase-prod failed its dry run of Cluster/tasks-prod/tasks-prod-db. It
succeeded on its own on the next 5-minute run, and nothing was changed. The CPU comes from Gitea Actions
CI job containers, which dind runs in a host-level cgroup outside the runner pod's requests and limits;
that is still the case (#2256).
Impact¶
- Services:
taskbase-prodnot Ready for 5 min 1 s; Taskbase prod kept running v1.253.0 throughout (its pods did not restart;/healthz200 afterwards). On worker-3 these containers restarted between 01:23:31 and 01:23:56:cilium-agent(exit 137),cilium-operator(255), the CNPG operator (1),kustomize-controller(1),image-reflector-controller(1),helm-controller(137),source-controller,cert-manager-webhook,metallb-speaker,node-exporter, Grafana and thepostgrescontainer ofmattermost-db-1. Four pods had their sandbox recreated (SandboxChanged):cilium-vmptq,helm-controller,mattermost-db-1and Grafana. Every Flux Kustomization showed "Reconciliation in progress" until the controllers were back. - Users: not recorded. Mattermost's database (single instance,
mattermost-db-1) restarted, so Mattermost was likely unavailable for some seconds. - Data: none lost; every CNPG cluster reported "Cluster in healthy state" afterwards.
- Duration: 01:23:57–01:28:58 UTC for the Kustomization. worker-3's CPU had been at 54–100 % (30-minute averages) since about 2026-10-30 20:30, against ~20 % before.
Timeline¶
All times UTC.
| Time | Event | Source |
|---|---|---|
| 10-29 10:42:43 | PR #649 merged in Skatzi/taskbase (aa4f09c, go-jose 4.1.6): only api/go.mod and api/go.sum |
git show --stat |
| 10-30 ~20:30 | worker-3 CPU busy rises from ~20 % to 77 % (30-min average) and stays at 54–88 % | Prometheus node_cpu_seconds_total |
| 01:17:53 | Last successful taskbase-prod health check |
Kustomization Healthy condition |
| 01:21–01:26 | worker-3 at 100 % CPU (1-min rate), node_load1 12 → 78.6 |
Prometheus |
| 01:23:14 | Cilium agent on worker-3 stops answering its own status probes ("No response from probe") | cilium-vmptq previous log |
| 01:23:31–01:23:56 | Containers on worker-3 exit (list under Impact); watches end with http2: client connection lost |
lastState.terminated, Cilium log |
| 01:23:50–01:23:56 | Sandboxes of four pods recreated | SandboxChanged events |
| 01:23:57 | Detected: taskbase-prod ReconciliationFailed, failed calling webhook "mcluster.cnpg.io" … dial tcp 10.104.31.28:443: connect: no route to host |
kustomize-controller event, Taskbase #2254 |
| 01:23:58 | CNPG operator pod Ready again | pod Ready condition |
| ~01:24 | node-exporter on worker-3 not scraped for three 30 s samples | Prometheus up |
| 01:27 | operator agent: server dry run of tasks-prod-db admitted by the webhook |
kubectl apply --dry-run=server |
| 01:28:58 | Resolved: taskbase-prod ReconciliationSucceeded on its regular interval, Applied revision: main@sha1:aa4f09c8… |
Kustomization condition |
| 01:29 | flux get kustomizations -A / helmreleases -A --status-selector ready=false: empty |
flux output |
Root cause¶
The failure was not caused by the revision it names. aa4f09c is the merge of a Go module bump made
two days earlier. It changed no manifest and no image (prod had been on v1.253.0 since b859253), so
the reconcile at 01:23:57 was a periodic one at an unchanged revision.
Why the webhook was unreachable. The only endpoint of cnpg-webhook-service
(10.244.3.106:9443) is the CNPG operator pod on worker-3. At 01:23 the node was saturated: the Cilium
agent stopped answering its probes at 01:23:14, lost its API watches and was killed (exit 137) at
01:23:48. While the agent restarted, pod traffic to worker-3 was not routed, and the operator itself
had just exited (01:23:41) after losing the API server. The API server's call to the webhook got
no route to host.
Why worker-3 was saturated. The Gitea Actions runner (components/gitea/act-runner/deployment.yaml)
runs CI jobs as Docker containers in its privileged dind container. The Deployment comment says
"CI jobs run inside this container. Requests let the scheduler see them; the memory limit keeps a
runaway job from taking the node." On this cluster that does not hold:
- dockerd uses
CgroupDriver=cgroupfson cgroup v2, anddindsees the host cgroup namespace (/proc/self/cgroupis0::/kubepods/burstable/pod<uid>/<cid>). - Each job container therefore lives in
/sys/fs/cgroup/docker/<id>at the host root, beside/kubepods, withcpu.maxandmemory.maxbothmax. The pod's 700m CPU request and 5Gi memory limit don't cover it, and the kubelet and the scheduler don't see it. At 01:25 the kubelet put 0.78 of the node's 3.47 busy cores on pods. Insidedind,docker statsshowed the two running jobs at 134 % and 46 %, and/sys/fs/cgroup/dockerhad used about 107,847 CPU-seconds in total. - At the root,
/dockerhascpu.weight100 against/kubepods155. Under contention, CI jobs get about 40 % of the node whatever the pods there request.
The jobs running at 01:25 were an eloro/webshop-platform kaniko image build (release / image) and a
ci / report job saving its cache with tar. What exactly turned high CPU use into a stall at
01:23:14 (CPU alone, memory, which dipped to 0.81 GiB available, or something else) is not settled by
the record; see Open questions.
What the agent did¶
The failure fits no section of the ops runbook.
The runbook has since gained one for it, Admission webhook unreachable during a node disruption (#2257).
Its triage order leads to
Generic Flux freeze, whose
read-only checks were followed. The agent made no write to the cluster or to Git apart from this report.
Every command below is read-only; kubectl exec was used only to read cgroup files and docker ps,
stats, info and inspect in dind.
flux get kustomizations -A,flux get helmreleases -A:taskbase-prodnot Ready with the webhook error; several others "Reconciliation in progress" or waiting onflux-system; no HelmRelease not Ready.kubectl -n cnpg-system get pods,svc,endpointslices -o wide: operator pod on worker-3, restarted 39 s earlier, the webhook's only endpoint10.244.3.106.kubectl -n kube-system get pods -l k8s-app=cilium -o wide:cilium-vmptqon worker-3 restarted 33 s earlier; its previous log: probes unanswered from 01:23:14,http2: client connection lost.git show --stat aa4f09c: onlyapi/go.mod,api/go.sum; merged 2026-10-29 10:42:43.kubectl get pods -A -o json | jq …lastState.terminated…: the restarts under Impact, all on worker-3 but one exit 0 on worker-2.kubectl get events -A --field-selector reason=SandboxChanged: four pods.kubectl describe node worker-3: Ready, no pressure conditions now (NoDiskPressuresince 2026-10-30 20:33:55).- Prometheus (port-forward to
monitoring-kube-prometheus-prometheus): worker-3 CPU, load, memory andupas in the Timeline; the other nodes'node_load10.2–2.7. kubectl get --raw /api/v1/nodes/worker-3/proxy/stats/summary: 3.47 cores busy, 0.78 on pods.- In
gitea-act-runner-d586f5d99-jgzsd(dind):docker ps,docker stats --no-stream,docker info(cgroupfs, v2),docker inspect(noNanoCpus, no cgroup parent),cat /proc/self/cgroup, and/sys/fs/cgroup/docker/*/{cpu.stat,cpu.max,cgroup.procs},/sys/fs/cgroup/{kubepods,docker}/cpu.weight,memory.max: as in Root cause. No leftover processes. kubectl apply --dry-run=serverof the livetasks-prod-dbCluster at 01:27: admitted by the webhook.- Waited for the Kustomization's own retry instead of
flux reconcile: Ready at 01:28:58. - Alertmanager (port-forward to
alertmanager-operated): no alert for worker-3, CNPG or Cilium was active; only the olderKubeStatefulSetUpdateNotRolledOut(openbao),NodeHighMemoryUsageandWatchdog. - Recorded follow-ups #2256 and #2257.
Resolution and verification¶
flux get kustomizations -A --status-selector ready=falseandflux get helmreleases -A --status-selector ready=false: both empty at 01:29; no Kustomization suspended.taskbase-prod:Ready=True,ReconciliationSucceeded,lastAppliedRevisionmain@sha1:aa4f09c8852bfbba1ca443d6ed2b26e47f46f779; health check passed.tasks-prod: API, MCP and UI pods running, not restarted;tasks-prod-db"Cluster in healthy state", 1/1.https://taskbase.skatzi.com/api/versionv1.253.0,/healthz200.- Every CNPG cluster in the cluster: "Cluster in healthy state". Every pod on worker-3 Running.
- Rollback: none. The upgrade named by the task (go-jose 4.1.6) changed no object on the cluster, so rolling it back would change nothing here.
- Not fixed: worker-3 was still at 42 % CPU at ~01:31, and CI jobs still run outside the runner pod's limits. The next heavy CI burst can stall a node again (#2256).
Follow-ups¶
-
2256 — keep gitea-act-runner CI job containers inside the runner pod's cgroup, requests and limits, and check whether the same mechanism explains the 2026-10-28 worker-1 kills (#2048).¶
-
2257 — ops runbook: a section for an admission webhook unreachable during a node disruption.¶
References¶
- Alert: none; Flux error event
ReconciliationFailedfrom kustomize-controller forflux-system/taskbase-prod - Taskbase incident task: #2254
- Runs: the
operatorrun of #2254 - Pull requests: the #2254 pull request (this report);
Skatzi/taskbase#649 (the merge named by the task, not the cause) - Runbook sections: Triage order, Generic Flux freeze
- Related incident: 2026-10-28 five pods on worker-1 SIGKILLed, where the act runner also sat on the affected node
Open questions¶
- What turned the CPU saturation into the stall at 01:23:14, when the Cilium agent stopped answering its own probes: CPU contention alone, the memory low (0.81 GiB available at ~01:23), or something on the node. Talos's kernel and service logs of worker-3 would settle it; the agent has no access to them.
- Whether the restarts were the kubelet's liveness kills or the sandboxes failing; the record has only
the exit codes and the
SandboxChangedevents. - Which CI jobs ran from 2026-10-30 20:30 to 01:23; the record has only the two running at 01:25.
- Whether the 2026-10-28 worker-1 kills (#2048) had the same cause (#2256 is to check).