Skip to content

2026-11-07: worker-1 stalled under memory again, source-controller unreachable, Flux froze for 24 minutes

Kind: reference (incident report)

Severity: critical · Status: mitigated (recovered; worker-1's memory squeeze waits on the owner's Talos patches #2543 and #2549 and on #2407) · Resolved by: the operator agent (#2652) retried the four failed roots; the CNPG operator's own retry cleared the Clusters · Duration: 0:24 from detection to resolution, 01:15:08–01:39:08 UTC (worker-1 stalled ~01:09–01:13:48) · Taskbase task: #2652

Summary

worker-1 on hetzner-mgmt ran short of memory while an agent run and a CI job grew on it. Its kubelet stopped reporting twice between 01:10 and 01:13:48, and most of its pods were killed and restarted. Two of them were the only replicas of Flux's source-controller and of the CNPG Barman Cloud plugin. Four Kustomizations failed with ArtifactFailed (connection refused to source-controller), and about 45 others waited on them. The operator agent retried the four once source-controller served its artifacts again. Six CNPG Clusters then held the emiliero and keycloak chains until the CNPG operator retried the plugin at about 01:33. Nothing was changed in Git apart from this report. This is the fourth worker-1 stall in eleven hours. The 2026-11-06 report covers the first two, and the 2026-11-06 23:13 report (#2643) the third, at 23:13–23:18.

Impact

  • Services: Gitea /api/healthz probe_success was 0 from 01:10:00 to 01:11:30 and at 01:13:30. gitea-postgresql-0 runs on worker-1. Flux was frozen on hetzner-mgmt from 01:15:08 to 01:39:08. Up to 49 Kustomizations were not Ready, all but four only through dependsOn. Every HelmRelease stayed Ready, and the running workloads were not rolled back or changed. Alertmanager runs on worker-1 and was killed at 01:11:43, so it could not deliver alerts during the stall. Taskbase's tasks-prod-db-1 is on worker-2 and was not affected. The six CNPG Clusters that use the Barman Cloud plugin reported Cluster cannot proceed to reconciliation due to an error while interacting with plugins until about 01:33. Their database pods were Running and Ready, and ContinuousArchiving stayed True. emiliero-db-1 (on worker-1, shared with Hello weekly, helloweekly-prod) was down from 01:11:40 (StartError, exit 128, sandbox container "…" is not running; plugin-barman-cloud sidecar exit 137 at 01:11:38) to 01:15:10 (database system is ready to accept connections), about 3.5 minutes. The Hello weekly pod helloweekly-78d6bbbdf-8vxwv (worker-1) exited 1 at 01:15:00 and came back. emiliero-api and emiliero-ui were not restarted. Keycloak was not affected: keycloak-db-1 and keycloak-0 run on worker-3 and did not restart (postmaster up since 2026-11-04 22:34:46), and both Keycloak probe_success probes were 1 throughout 01:05–01:40.
  • Users: Gitea was unavailable for about 2 minutes. No user report is recorded.
  • Data: none lost. emiliero-db crash recovery was clean (database system was not properly shut down; automatic recovery in progress, redo starts at 0/7E001908, redo done at 0/7F000110). WAL archiving resumed: pg_stat_archiver showed last_archived_wal 000000010000000000000081 at 01:25:14 and failed_count 0. All seven CNPG Clusters were Cluster in healthy state at 01:33:10. The evictions of worker-1's pods were cancelled when the node returned (TaintManagerEviction "Cancelling deletion", last at 01:13:53), so no database pod moved. keycloak-db's pg_stat_archiver at 02:52 showed last_archived_wal 00000001000000120000009B at 02:50:19 and no failure since 2026-11-05 20:02, and its daily backup keycloak-db-daily-20261107022000 completed.
  • Duration: 24 minutes from detection (the Flux error at 01:15:08) to resolution (01:39:08). worker-1's memory fell from 01:04:30, and the node stalled from about 01:09 to 01:13:48.

Timeline

All times UTC. Prometheus samples are 30-second steps.

Time Event Source
00:58:31 main@63cbe7f3 merged: platform-docs image v1.118.25, components/docs/deployment.yaml only git show --stat 63cbe7f3
01:01:27 kubernetes-oidc-rbac reconciled at 63cbe7f3 (Healthy=True), with no error Kustomization conditions, flux events
01:04:30 worker-1 MemAvailable 4.26 GiB Prometheus node_memory_MemAvailable_bytes
01:04–01:09 agent-runners/miki-container-agent-85765999d-8mtcc grows from 0.36 to 1.90 GiB (request 1Gi, limit 4Gi), gitea/gitea-act-runner-56b45b58f-rwcwb from 0.23 to 1.97 GiB Prometheus container_memory_working_set_bytes
01:09:00 worker-1 MemAvailable 0.99 GiB. Its node-exporter has no sample from 01:09:30 to 01:12:00, and node_load1 reaches 67.7 at 01:15 Prometheus
01:09:10 source-controller liveness and readiness probes time out (context deadline exceeded) pod events
01:10:00–01:11:30 Gitea probe_success 0 Prometheus
01:10:10 worker-1 NodeNotReady node events
01:11:30 source-controller "failed liveness probe, will be restarted" pod events
01:11:33–01:11:48 On worker-1, object-storage-exporter, external-secrets-cert-controller, cert-manager-cainjector, Alertmanager, hubble-relay and source-controller (01:11:48) are killed, exit 137. terraform-state-db-1 and emiliero-db-1 fail with StartError pod lastState
01:12:30 worker-1 MemAvailable 0.86 GiB Prometheus
01:12:53–01:13:00 cilium-vhzrt (cilium-agent), hcloud-csi-node and cilium-envoy killed, exit 137 pod lastState
01:13:30 Gitea probe_success 0 Prometheus
01:13:36 worker-1 NodeNotReady node events
01:13:40–01:13:59 The Barman Cloud plugin, cilium-operator, node-exporter, kube-proxy, harbor-exporter, cert-manager-webhook and the Prometheus operator killed. helm-controller, image-reflector-controller, metallb-speaker, hubble-ui and the hcloud CSI driver fail with StartError pod lastState
01:13:38–01:15:27 source-controller cannot get a new sandbox: dial unix /var/run/cilium/cilium.sock: connect: no such file or directory, then putEndpointIdTooManyRequests FailedCreatePodSandBox events
01:13:48 worker-1 NodeReady node events
01:14:00 miki-container-agent at its peak, 3.70 GiB Prometheus
01:15:08 Detected: kubernetes-oidc-rbac and taskbase-prod ArtifactFailed, dial tcp 10.96.150.192:80: connect: connection refused; task #2652 Flux event, Taskbase
01:15:18, 01:15:52 gateway-api-crds (#2653) and hetzner-csi (#2654) ArtifactFailed with the same error Flux events, Taskbase
01:15:40 Last CNPG operator error for the plugin Clusters: while querying plugin identity: ... dial tcp 10.97.254.211:9090: connect: connection refused cloudnative-pg leader log
01:15:47 Barman Cloud plugin reconciling its ObjectStores again plugin log
01:16:58 source-controller Ready, new sandbox 10.244.2.75 pod conditions, EndpointSlice
01:17:30 Both artifacts served: gitea-platform/63cbe7f3….tar.gz and taskbase/e2b9c4a1….tar.gz HTTP 200 operator agent, through a port-forward
01:17:45–01:19:06 flux reconcile kustomization for kubernetes-oidc-rbac, gateway-api-crds, hetzner-csi and taskbase-prod, one at a time: each applied revision operator agent
01:19:26 keycloak-database applies main@63cbe7f3 (the CNPG webhook validates its ScheduledBackup) and starts its health check on Cluster/keycloak/keycloak-db cloudnative-pg webhook log
01:23:26 emiliero health check failed after 4m30s: timeout waiting for: [Cluster/emiliero-prod/emiliero-db ...] Flux
01:28:56 keycloak-database and terraform-state-db HealthCheckFailed: health check failed after 9m30.048890847s: timeout waiting for: [Cluster/keycloak/keycloak-db status: 'InProgress'], and the same for Cluster/terraform-state/terraform-state-db; tasks #2656 and #2657 Flux event, Taskbase
01:32:21 CNPG operator Cluster has become healthy for keycloak-db, 1001 s after its last plugin error at 01:15:40.265; Ready=True ClusterIsReady cloudnative-pg leader log, Cluster conditions
01:32:24 CNPG operator: Cluster has become healthy for emiliero-db (Ready=True ClusterIsReady). emiliero Health check passed at about 01:33 CNPG operator log, Flux events
01:32:20–01:33:10 All seven CNPG Clusters Cluster in healthy state kubectl get clusters.postgresql.cnpg.io -A
01:39:08 Resolved: no Kustomization or HelmRelease not Ready. Every Kustomization at main@dd2bc075 (the platform-docs image v1.118.26, merged meanwhile) flux get ... --status-selector ready=false

Root cause

The failure Flux reported. kustomize-controller downloads each revision's artifact from source-controller's Service. source-controller runs one replica, and it was on worker-1. While worker-1 stalled, the pod failed its probes and was killed at 01:11:48. Its new sandbox could not get a network until worker-1's Cilium agent came back, so the Service had no endpoint until 01:16:58. Every Kustomization that reconciled in that window gave up after 10 attempts with connection refused. They had no retryInterval, so each would have waited its full interval (10 minutes, 5 for taskbase-prod) before trying again. #2658 has since set retryInterval: 2m on every hetzner-mgmt Kustomization. The revision the task names, main@63cbe7f3, was only the source's HEAD. It changed the platform-docs image, and kubernetes-oidc-rbac had already applied it at 01:01 without errors. The mechanism is the one of the ops runbook's Admission webhook unreachable during a node disruption, a single-replica controller on a stalled node, with source-controller in the webhook's place. The runbook now has its own section for it, ArtifactFailed: source-controller unreachable during a node disruption (#2648).

Why it took 24 minutes. The Barman Cloud plugin also runs one replica on worker-1. It was killed at 01:13:40 and served again from 01:15:47. The CNPG operator's last attempt to reach it failed at 01:15:40, and the operator did not retry those six Clusters until about 01:33 (01:32:24 for emiliero-db, 1004 s later). That is the CNPG operator's error backoff, confirmed by #2655: a failed plugin connection while a Cluster's plugins load returns an error from Reconcile, which puts the Cluster on controller-runtime's per-object exponential backoff, capped at 1000 s (Clusters wait up to 17 minutes after the plugin returns). keycloak-db shows the same: the operator logged Reconciler error for it at 01:11:22, 01:11:46, 01:11:49, 01:12:04, 01:13:44 and 01:15:40.265, then nothing for that Cluster until Cluster has become healthy at 01:32:21.381, 1001 s later. emiliero and keycloak-database health-check their CNPG Cluster's Ready condition, so their chains (Keycloak, then Gitea, Harbor and the Prometheus stack) waited until then. keycloak-database and terraform-state-db set no spec.timeout, so their health checks got their 10-minute interval: started at 01:19:26, they gave up at 01:28:56, three minutes before the operator's retry. A longer timeout would have hidden the failure but would not have shortened the wait. #2661 (merged, aa1754f2) has since made the plugin prefer a worker other than worker-1. It keeps one replica, because more than one does not work with chart 0.8.1 and plugin v0.15.1; #2663 asks the owner whether to report both gaps upstream.

Why worker-1 stalled. Its memory was squeezed, the same pattern as the 2026-11-06 worker-1 stalls. worker-1 has 7.1 GiB allocatable, with 87 % of it requested (6332Mi) and limits at 230 %. Between 01:04 and 01:14 an agent run in miki-container-agent grew from 0.36 to 3.70 GiB, against a 1Gi request. A CI job in the act runner on the same node grew to about 2 GiB. MemAvailable fell from 4.26 GiB to 0.86 GiB, and the kubelet stopped reporting. The kernel OOM killer did not act: node_vmstat_oom_kill stayed at 45. The node did not reboot (node_boot_time_seconds unchanged), and the kubelet did not restart (process_start_time_seconds unchanged). Which component killed the pods with exit 137 is still unconfirmed, as on 2026-11-04 (#2546).

The fixes for this squeeze are planned and wait on the owner, because they need talosctl: kubelet soft eviction at 2 GiB available (#2543) and Talos's OOMConfig (#2549). #2407 raises the container agents' memory request to their peak use.

Not the cause. The merge at 63cbe7f3. No rollback was needed, and none was done.

What the agent did

The operator agent of #2652 followed the runbook's Triage order, Generic Flux freeze and the roll-forward of Admission webhook unreachable during a node disruption. It made four writes (step 7). Everything else was read-only. No silence was set, and nothing was changed in Git apart from this report.

  1. flux get kustomizations -A, flux get sources git -A (01:16): gateway-api-crds, kubernetes-oidc-rbac and taskbase-prod not Ready with ArtifactFailed, the others Reconciliation in progress or waiting on a dependency. Every GitRepository Ready. kubernetes-oidc-rbac: lastAppliedRevision 63cbe7f3, Healthy=True since 01:01:27.
  2. kubectl -n flux-system get pods -o wide, get endpoints source-controller, get events: source-controller Error on worker-1 with 6 restarts, and its Service had no endpoint. FailedCreatePodSandBox with cilium.sock: no such file or directory, then putEndpointIdTooManyRequests. helm-controller and image-reflector-controller on worker-1 were also restarting.
  3. kubectl get nodes, node conditions and events, kubectl -n kube-system get pods -o wide: worker-1 NotReady at 01:10:10 and 01:13:36, Ready at 01:13:48. cilium-vhzrt was killed with exit 137 at 01:12:53 (11 restarts).
  4. Alertmanager (kubectl -n monitoring port-forward svc/alertmanager-operated 9093, GET /api/v2/alerts?active=true): only InfoInhibitor firing. Prometheus (port-forward svc/monitoring-kube-prometheus-prometheus 9090): the worker-1 memory, load, node_vmstat_oom_kill, node_boot_time_seconds, kubelet process_start_time_seconds, top pods by working set and CPU, and Gitea probe_success used above. The pod kill times came from each container's lastState. kubectl describe node worker-1 gave the allocated resources.
  5. git show --stat 63cbe7f3, flux -n flux-system events --for Kustomization/kubernetes-oidc-rbac: the revision changed only components/docs/deployment.yaml.
  6. 01:17:08–01:17:30: source-controller Ready, EndpointSlice 10.244.2.75 ready. Through kubectl -n flux-system port-forward svc/source-controller 18080:80, both artifacts answered HTTP 200 (1505177 and 1601528 bytes).
  7. Writes, one at a time. Each is the runbook's single retry of a root once its source answers again, and each was checked with flux get kustomizations before the next:
    1. flux -n flux-system reconcile kustomization kubernetes-oidc-rbac at 01:17:45: exit 0, applied revision main@sha1:63cbe7f359656606af6c6a5cd341efeb20acd008, Ready.
    2. flux -n flux-system reconcile kustomization gateway-api-crds at 01:17:50: applied revision main@sha1:63cbe7f3…, Ready.
    3. flux -n flux-system reconcile kustomization hetzner-csi at 01:17:58: applied revision main@sha1:63cbe7f3…, Ready.
    4. flux -n flux-system reconcile kustomization taskbase-prod at 01:18:04: applied revision main@sha1:e2b9c4a1690bdbf4b831d0169b87ef8796fba545 at 01:19:06, Ready.
  8. Watched flux get kustomizations -A --status-selector ready=false from 01:20 to 01:25. What remained only waited on dependencies, until emiliero failed its health check on Cluster/emiliero-prod/emiliero-db.
  9. kubectl get clusters.postgresql.cnpg.io -A, the cloudnative-pg leader's and the plugin's logs, kubectl -n cnpg-system get pods,svc,endpointslices: six Clusters with Error while discovering plugins ... dial tcp 10.97.254.211:9090: connect: connection refused (last at 01:15:40), while the plugin had been serving since 01:15:47. The agent waited for the operator's own retry, with no write to the Clusters. Every Cluster was healthy at 01:33:10.
  10. Watched Flux until 01:39:08: nothing not Ready.
  11. Taskbase: read #2543, #2549, #2546, #2407 (open) and #2643, #2648 (the 23:13 stall and its runbook follow-up). No new follow-up was needed. This report is the change.
  12. The operator run of #2655 checked emiliero at 02:20–02:30, read-only, with no write: Flux events, pod lastState, Postgres and CNPG operator logs, Prometheus node_boot_time_seconds, kubelet process_start_time_seconds and node_vmstat_oom_kill (unchanged, no OOM), and pg_stat_archiver. main@2c24ca8b (emiliero image tags v1.27.9) was not the cause, and nothing was rolled back.
  13. The operator run of #2656 (keycloak-database) checked Keycloak at 02:45–03:00, read-only, with no write: the Kustomization's conditions and events, the keycloak-db Cluster's conditions, pods and backups, the cloudnative-pg leader's log for keycloak from 01:10 to 01:35, the plugin pod's lastState (exit 137, finished 01:13:40, running again from 01:15:27), pg_stat_archiver on keycloak-db-1, and Prometheus probe_success for Keycloak and cnpg_collector_up for keycloak-db-1 (1 throughout 01:05–01:40). main@63cbe7f3 changed nothing under components/keycloak/database, and nothing was rolled back.

Resolution and verification

Checked at 01:39 UTC:

  • flux get kustomizations -A --status-selector ready=false: nothing. kubernetes-oidc-rbac, gateway-api-crds and hetzner-csi show Applied revision: main@sha1:dd2bc075, and taskbase-prod main@sha1:e2b9c4a1.
  • flux get helmreleases -A --status-selector ready=false: nothing.
  • kubectl get nodes: all four nodes Ready.
  • kubectl get clusters.postgresql.cnpg.io -A: all seven Cluster in healthy state.
  • https://gitea.prod.skatzi.com/api/healthz: HTTP 200.

Rechecked at 01:43 UTC by the operator run of #2653, read-only: flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false return nothing. gateway-api-crds is Ready=True, Applied revision: main@sha1:dd2bc075 (transition 01:42:23). All four nodes are Ready, and no pod is outside Running or Completed. source-controller is at 7 restarts, Ready since 01:16:58. That run's own Prometheus queries match the timeline above: node_vmstat_oom_kill 45 throughout, and node_boot_time_seconds unchanged.

Rechecked at 02:59 UTC by the operator run of #2656, read-only, after main@f5f3bf07 (platform-docs image v1.118.28) had rolled down the dependsOn chain in five minutes: flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false return nothing. keycloak-database is Applied revision: main@sha1:f5f3bf07, all seven CNPG Clusters are Cluster in healthy state, and the Keycloak OIDC discovery URL answers HTTP 200. The plugin was still one replica, at 11 restarts.

worker-1 still has 87 % of its memory requested, with the same pods. Until #2543, #2549 and #2407 are done, it can stall again the same way.

Follow-ups

  • 2648 (done, merged): ops runbook, add ArtifactFailed with source-controller unreachable to the triage order.

  • 2658 (done, merged): every hetzner-mgmt Kustomization retries a failed reconcile after 2 minutes (retryInterval: 2m), so an ArtifactFailed clears soon after source-controller is back.

  • 2655 (done): confirmed that the CNPG operator's per-object error backoff, capped at 1000 s, held the plugin Clusters until about 01:33.

  • 2661 (done, merged): the Barman Cloud plugin prefers a worker other than worker-1. It stays at one replica, because chart 0.8.1 and plugin v0.15.1 do not work with more.

  • 2543 (owner): apply the kubelet soft-eviction patch to the hetzner-mgmt workers.

  • 2549 (owner): apply the OOMConfig to the hetzner-mgmt nodes.

  • 2546 (owner): read the Talos OOM action log. worker-1's log would also cover these kills, if it is read before the node reboots.

  • 2407: raise the container agent runners' memory request to their peak use (here 3.7 GiB against a 1Gi request).

  • 2663 (owner): decide whether to report upstream that the plugin cannot run more than one replica and that CloudNativePG backs off plugin-loading errors up to 1000 s.

References

Open questions

  • What killed worker-1's pods with exit 137 between 01:11:33 and 01:13:59: Talos's OOM controller, a cri restart or the kubelet. The kernel OOM killer did not act. Only the node's Talos logs settle it (#2546).
  • What the agent run in miki-container-agent and the CI job in the act runner were doing from 01:04 to 01:14. The record has only the pods' memory.