2026-11-06: worker-1 stalled a third time, Flux's source-controller unreachable¶
Kind: reference (incident report)
Severity: critical · Status: mitigated (recovered on its own; worker-1's memory squeeze waits on #2407 and the owner's Talos patches #2543 and #2549) · Resolved by: worker-1 and Flux recovered on their own; investigated by the operator agent (#2643) · Duration: 0:10 from detection to resolution, 23:18:33–23:28:22 UTC (worker-1 stalled ~23:13–23:18:17, Gitea /api/healthz failing 23:14–23:18) · Taskbase task: #2643 (also covers #2645 and #2646)
Summary¶
worker-1 on hetzner-mgmt ran short of memory for the third time on 2026-11-06, this time under one agent run in miki-container-agent that grew to its 4Gi limit. The node stopped answering for about four minutes. When it came back, its pods were restarted. Flux's source-controller was one of them, and it runs one replica, on worker-1. For about two minutes nothing answered on source-controller's Service. Four Kustomizations failed to download their artifact (ArtifactFailed, connection refused) and reconciled on their own once it was back. Nothing was changed.
Impact¶
- Services:
flux-system/helloweekly-auth-proxy,platform-docs,helloweeklyandtaskbase-prodwere not Ready for 3–10 minutes. Their workloads kept running at the last applied revision. Gitea/api/healthzfailed from 23:14:00 to 23:18:00 (its databasegitea-postgresql-0is on worker-1). Most pods on worker-1 were restarted at 23:18:10–23:18:27: Cilium,kube-proxy, the hcloud CSI node plugin, MetalLB's speaker, Alertmanager, cert-manager, Harbor's nginx, portal and redis, and Flux's source-, helm- and image-reflector-controllers, plus the CNPG instancesterraform-state-db-1,emiliero-db-1andbotyard-prod-db-1. - Users: Gitea was unavailable for about 4 minutes. The agent run in
miki-container-agentthat grew is its own casualty (itsrunnercontainer has 17 restarts). - Data: none lost. The node's pending evictions were cancelled when it returned (
TaintManagerEviction"Cancelling deletion", 23:17:47–23:18:22), so no database pod moved. - Duration: 10 minutes from detection (the first
ArtifactFailedat 23:18:33) to resolution (23:28:22). worker-1 stalled from about 23:13 to 23:18:17.
Timeline¶
All times UTC. Prometheus samples are 1-minute steps unless a time has seconds.
| Time | Event | Source |
|---|---|---|
| 23:07:51 | main@d41ce280 merged: docs/.../ops-runbook.md only. main@84ede6da (platform-docs image) follows at 23:09:43 |
git show --stat |
| 23:08 | agent-runners/miki-container-agent-85765999d-8mtcc at 1218 MiB (runner: request 1Gi, limit 4Gi); worker-1 MemAvailable 3.41 GiB |
Prometheus container_memory_working_set_bytes, node_memory_MemAvailable_bytes |
| 23:12 | worker-1 MemAvailable 1.11 GiB |
Prometheus |
| 23:13 | miki-container-agent at 3871 MiB (its runner peaks at 4092 MiB by 23:20); MemAvailable 0.82 GiB, the last sample until 23:19 |
Prometheus |
| 23:13:54 | worker-1 NodeNotReady |
node events |
| 23:14:00–23:18:00 | Gitea /api/healthz probe fails (https://gitea.prod.skatzi.com itself fails 23:14:00–23:14:30) |
Prometheus probe_success |
| 23:17:26 | worker-1 NodeNotReady again |
node events |
| 23:17:47–23:18:22 | Taint manager cancels the pending evictions of worker-1's pods | TaintManagerEviction events |
| 23:18:07 | ContainerGCFailed: rpc error: code = DeadlineExceeded |
node events |
| 23:18:10–23:18:27 | Most containers on worker-1 stop and restart (exit 137, 143, 128 StartError or 0); 14 SandboxChanged events |
pod lastState, events |
| 23:18:17 | worker-1 NodeReady |
node events |
| 23:18:20 | source-controller (manager) killed after failing its liveness probe (dial tcp 10.244.2.239:9440: connect: connection refused), exit 137 |
pod lastState, events |
| 23:18:33 | Detected: helloweekly-auth-proxy ArtifactFailed, dial tcp 10.96.150.192:80: connect: connection refused; task #2643 created |
Flux event, Taskbase |
| 23:18:59, 23:19:06, 23:19:56 | helloweekly, platform-docs (task #2645) and taskbase-prod (task #2646) fail the same way |
Flux events |
| 23:19:11 | worker-1's kubelet logs Starting |
node events |
| 23:20:13 | source-controller restarted, with the new pod IP 10.244.2.44, and becomes leader |
pod status, lease event |
| 23:20 | worker-1 MemAvailable 4.35 GiB |
Prometheus |
| 23:21:08 | gitea-platform stores the artifact for main@84ede6da |
GitRepository status |
| 23:21:17, 23:24:57 | helloweekly and taskbase-prod reconcile successfully |
Flux events |
| 23:28:02, 23:28:22 | helloweekly-auth-proxy and platform-docs reconcile successfully, at main@84ede6da |
Flux events |
| 23:41–23:45 | The operator agent of #2643 finds nothing not Ready and all nodes Ready |
flux get ... --status-selector ready=false, kubectl get nodes |
Root cause¶
The failure Flux reported. kustomize-controller fetches each source's artifact over HTTP from source-controller's Service (source-controller.flux-system, 10.96.150.192:80). source-controller runs one replica, and that replica is on worker-1. While worker-1 was stalled and while the restarted controller started up (until about 23:20:13), the Service had no ready endpoint. Each Kustomization that reconciled in that window retried 10 times and gave up with connection refused. The next reconcile, at its own interval, fetched the artifact and applied it. This is the same mechanism as the CNPG webhook failure of the same day: one replica of a controller that every apply needs, on a node that stalls.
Why worker-1 stalled. It ran out of memory in the same way as at 14:57 the same day (2026-11-06 report). worker-1 has 87 % of its memory requested and limits at 230 %. One agent run in miki-container-agent grew from 1.2 GiB to 3.9 GiB in five minutes, within its 4Gi limit but almost 3 GiB above its 1Gi request, and available memory fell from 3.4 GiB to 0.82 GiB. The node stopped reporting before the kernel OOM killer acted: node_vmstat_oom_kill stayed at 45 throughout, and node_boot_time_seconds did not change (no reboot). The kubelet restarted (Starting at 23:19:11) and recreated the pod sandboxes.
The fixes for this squeeze are already planned: #2407 raises the container agents' memory request to their peak use, and the owner's Talos patches add kubelet soft eviction at 2 GiB available (#2543) and Talos's OOMConfig (#2549). None of them is applied yet.
Not the cause. The revision named in the task, main@d41ce280, changed only docs/content/contribution/components/renovate/ops-runbook.md. No component was upgraded, so there was nothing to roll back and nothing was rolled back. The same holds for taskbase-prod (#2646): its revision, Skatzi/taskbase main@e2b9c4a1 ("chore: promote prod to v1.255.1", the three image tags in deploy/prod/), was committed at 2026-11-06 04:21:38 and had been applied for about 19 hours before the failure. Its events show ReconciliationSucceeded before 23:19:56 and again from 23:24:57.
What the agent did¶
The operator agent of #2643 followed the runbook's Triage order. No section covers ArtifactFailed with source-controller unreachable, so it used the checks of the closest section, Admission webhook unreachable during a node disruption. Every step was read-only. Nothing was changed in the cluster or in Taskbase apart from comments and the follow-up task, no silence was set, and no Flux action was taken.
flux get kustomizations -A,flux get sources git -A(23:41): all Ready.helloweekly-auth-proxyhad appliedmain@84ede6da.kubectl -n flux-system get pods -o wide,describe pod source-controller-…, events: one replica on worker-1, 5 restarts, the last ending at 23:18:20 with exit 137 afterContainer manager failed liveness probe;TaintManagerEviction"Cancelling deletion".kubectl get nodes,describe node worker-1, node events and lease:NodeNotReadyat 23:13:54 and 23:17:26,NodeReadyat 23:18:17,ContainerGCFailed, kubeletStartingat 23:19:11; 87 % of memory requested, limits at 230 %; no taints now.git show --stat d41ce280: only the ops runbook changed.flux -n flux-system events --for Kustomization/helloweekly-auth-proxyand the events ofplatform-docs,helloweeklyandtaskbase-prod:ArtifactFailedat 23:18:33–23:19:56, thenReconciliationSucceededby 23:28:22.- The runbook's
jqfilter over worker-1's pods'lastState: the restarts at 23:18:10–23:18:27 listed under Impact.kubectl get events -A --field-selector reason=SandboxChanged: 14. - Prometheus (
kubectl -n monitoring port-forward svc/monitoring-kube-prometheus-prometheus 9090, queries only): worker-1node_memory_MemAvailable_bytes,node_vmstat_oom_kill,node_boot_time_seconds,topk(6, …container_memory_working_set_bytes{node="worker-1"})at 23:08 and 23:13,max_over_timeofmiki-container-agent's containers, andprobe_successfor Gitea. - Alertmanager (
kubectl -n monitoring port-forward svc/alertmanager-operated 9093,GET /api/v2/alerts): onlyWatchdogandKubeStatefulSetUpdateNotRolledOutforopenbao(firing since 2026-11-04, unrelated) are active. - Read #2543, #2549 and #2407: all open. Created #2648, the runbook follow-up.
flux get kustomizations -A --status-selector ready=falseandflux get helmreleases -A --status-selector ready=false(23:45): nothing. All four nodesReady.- This pull request: this report and its row in the index.
The operator agent of #2646 (taskbase-prod) repeated the read-only checks at 00:05–00:10 on 2026-11-07 and changed nothing either:
flux get kustomizations -A,--status-selector ready=false,flux get helmreleases -A --status-selector ready=false:taskbase-prodReady atmain@e2b9c4a1(ReconciliationSucceeded, health check passed, 00:04:57); nothing not Ready.kubectl -n flux-system get pods -o wideand theirlastState:source-controller,helm-controllerandimage-reflector-controller, all on worker-1, last ended with exit 137 at 23:18:20–23:18:22. worker-1 node events:NodeNotReady,ContainerGCFailed,NodeReady,Starting.- Prometheus: worker-1
MemAvailable14.7 % at 23:12 and no sample until 23:20;node_vmstat_oom_killno increase;node_boot_time_seconds2026-07-02 (no reboot). Growth on worker-1 over the 20 minutes to 23:13:miki-container-agent+3849 MiB,gitea-act-runner+1090 MiB. git show --stat e2b9c4a,flux -n flux-system events --for Kustomization/taskbase-prod: the revision only bumps image tags and had been applied before; oneArtifactFailed, thenReconciliationSucceededevery 5 minutes.kubectl -n tasks-prod get deployandGET https://taskbase.skatzi.com/api/version: the API, UI and MCP runv1.255.1, all ready; the API answers{"version":"v1.255.1"}.- Alertmanager
GET /api/v2/alerts: onlyWatchdog, theopenbaoKubeStatefulSetUpdateNotRolledOutof 2026-11-04 and suppressedCPUThrottlingHighforgiteaare active.
Resolution and verification¶
Flux recovered without intervention: source-controller was running again at 23:20:13, and the last failed Kustomization, platform-docs, reconciled at 23:28:22. At 23:45, flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false listed nothing, and all nodes were Ready. The squeeze that caused it is still possible until the follow-ups below are applied.
Follow-ups¶
-
2407: raise the container agents' working memory request to their peak use. This run measured 4092 MiB for
miki-container-agent'srunneragainst a 1Gi request.¶ -
2543 (owner): kubelet soft eviction at 2 GiB available on the workers.¶
-
2549 (owner): Talos
OOMConfigon the nodes.¶ -
2648 (
technical-writer): addArtifactFailedwithsource-controllerunreachable to the triage order, as a node-disruption failure that clears on the next reconcile.¶
References¶
- Alert: none for this failure; the post-merge failure tasks came from Flux error events.
- Taskbase incident task: #2643; the same failure for
platform-docsis #2645 and fortaskbase-prod#2646; the earlier stalls the same day are #2634 - Runs: the #2643 and #2646 runs
- Pull requests: this report's pull request
- Runbook sections: Triage order, Admission webhook unreachable during a node disruption
Open questions¶
- Should
source-controllerrun on a node that agent runs and CI jobs cannot squeeze, or with a priority class that keeps it running? Its one replica on worker-1 was restarted in both stalls of this day (15:48 and 23:18). Whether a second replica would help depends on how source-controller serves artifacts from more than one pod, which this run did not check. - What
miki-container-agentwas running at 23:08–23:13 is not recorded here; the run's own log in Taskbase holds it.