2026-10-27: webshop pod DNS broken after Flux took over Cilium¶
Kind: reference (incident report)
Severity: warning · Status: resolved · Resolved by: operator agent · Duration: ~2 h 8 min (2026-10-27 22:48 – 2026-10-28 00:56 UTC); pod DNS back at 00:33 · Taskbase task: #1832, recovery #1834
Summary¶
When PR #902 merged, Flux took over the webshop cluster's Cilium release from Terraform. The upgrade to chart 1.17.18 also applied the component's bpf.masquerade: true. From then on, Cilium dropped every DNS query from CoreDNS to the Talos host resolver. Nothing on webshop resolves a name, so Flux can no longer fetch Git or Helm charts. cert-manager and external-secrets, and every component that depends on them, never install.
Impact¶
- Services: on the webshop cluster:
- the
platformGitRepository and thejetstack,external-secretsandmetallbHelmRepositories fail; - cert-manager and external-secrets are not installed;
cert-manager-config,external-secrets-config,hetzner-csi-token,hetzner-csiandshared-gatewaywait on them.- Users: none. The cluster serves no traffic yet: the first webshop is not deployed and
shared-gatewaywas never Programmed. - Data: none.
- Duration: fault from 22:48 UTC, detected 22:51 UTC; pod DNS resolved again at 00:33 UTC on 2026-10-28 and every Kustomization was Ready at 00:56 UTC.
Timeline¶
All times UTC, 2026-10-27 unless marked otherwise.
| Time | Event | Source |
|---|---|---|
| 22:41 | The webshop root Kustomization applies 740a194 (PR #902) and creates the component Kustomizations |
kubectl get kustomization webshop history |
| 22:47 | helm-controller upgrades kube-system/cilium from revision 1 (1.17.3, Terraform) to revision 2 (1.17.18) |
helm history cilium |
| 22:48 | First CoreDNS error: read udp 10.244.0.66:…->169.254.116.108:53: i/o timeout |
CoreDNS logs |
| 22:51 | Detected by the operator agent while checking 1.17.18 for #1822: jetstack and external-secrets HelmRepositories fail with server misbehaving |
flux get sources helm -A |
| 22:53 | GitRepository platform fails too: lookup gitea.prod.skatzi.com on 10.96.0.10:53: server misbehaving |
flux get sources git -A |
| 22:54 | Cause found: Cilium drops CoreDNS's queries with drop (FIB lookup failed, 4) … bpf_lxc.c:1380 … -> 169.254.116.108:53 udp |
cilium-dbg monitor --type drop |
| 22:57 | Fix pull request opened: bpf.masquerade: false in the webshop patch |
Skatzi/platform#914 |
| 10-28 00:30 | #914 merged as fac8b21; webshop cannot fetch it |
pull_status 914 |
| 10-28 00:31 | Recovery (#1834) starts: cilium-config suspended |
commands log, step 1 |
| 10-28 00:32 | HelmRelease patched; Helm revision 3 deployed, but the agent pod is not restarted and keeps BPF masquerading | helm history cilium, cilium-dbg status |
| 10-28 00:33 | Agent pod deleted; the new agent runs iptables masquerading and pod DNS resolves | cilium-dbg status, nslookup from a pod |
| 10-28 00:34 | GitRepository platform fetches main@70f55b89 (contains fac8b21); cilium-config resumed and applies it with no new Helm revision |
flux get sources git -A, helm history cilium |
| 10-28 00:44 | jetstack and external-secrets HelmRepositories (24 h interval) reconciled; cert-manager and external-secrets install |
flux get sources helm -A |
| 10-28 00:56 | Every Kustomization and HelmRelease on webshop Ready at main@70f55b89 |
flux get kustomizations -A --status-selector ready=false |
Root cause¶
The Talos version that installed webshop (v1.13) forwards cluster DNS to its host resolver by default (forwardKubeDNSToHost). In the CoreDNS pods /etc/resolv.conf names 169.254.116.108, a link-local address that Talos serves on the node.
Terraform installed Cilium 1.17.3 without bpf.masquerade, so Cilium masqueraded with iptables and used legacy host routing. components/cilium-config sets bpf.masquerade: true, and PR #902 brought those values to webshop. Cilium then switched to BPF masquerading and BPF host routing (cilium-dbg status: Host: BPF, Masquerading: BPF).
On that path, the FIB lookup for the pods' packets to 169.254.116.108 fails, and Cilium drops them in bpf_lxc.c. From the host network namespace the resolver still answers: getent hosts gitea.prod.skatzi.com in the cilium-agent pod returns 116.202.177.24.
The Talos Cilium guide lists this as a known issue: "When using Talos forwardKubeDNSToHost=true (enabled by default) together with Cilium bpf.masquerade=true, CoreDNS may not work correctly." hetzner-mgmt runs bpf.masquerade: true on the same Talos version without errors; why it is not affected is an open question.
What the agent did¶
All steps until 22:57 were read-only.
flux get kustomizations -A,flux get helmreleases -A,flux get sources helm|git -A— showedciliumat 1.17.18 Ready, and the Helm and Git sources failing on DNS.kubectl -n kube-system logs <coredns> --timestamps— every upstream query to169.254.116.108timed out. The first error came at 22:48:22; there was none in the 4 hours before.helm get values cilium --revision 1|2andhelm get manifest … | grep masquerade— showed that revision 2 addsbpf.masquerade: true(enable-bpf-masquerade: "true").kubectl exec ds/cilium -c cilium-agent -- getent hosts gitea.prod.skatzi.com— the host resolver works.kubectl exec ds/cilium -c cilium-agent -- cilium-dbg monitor --type drop— Cilium drops the queries withFIB lookup failed.- Skatzi/platform#914 —
bpf.masquerade: falseincluster/webshop/cilium/kustomization.yaml; merged 2026-10-28 00:30 asfac8b21.
Live recovery for #1834 on 2026-10-28, context webshop, after #914 merged. Each step was checked before the next one:
kubectl exec ds/cilium -c cilium-agent -- cilium-dbg monitor --type dropandkubectl run dns-check-1834 --rm -i --restart=Never --image=busybox:1.36 -- nslookup gitea.prod.skatzi.com(baseline):FIB lookup faileddrops to169.254.116.108:53, and the lookup fails withconnection timed out; no servers could be reached.- 00:31:58
flux suspend kustomization cilium-config— exit 0,kustomization suspended, so the Kustomization stops re-applyingmasquerade: truefrom the stale revision095ea842. - 00:32:01
kubectl -n kube-system patch helmrelease cilium --type merge -p '{"spec":{"values":{"bpf":{"masquerade":false}}}}'— exit 0. Helm revision 3 (cilium-1.17.18)deployed, and thecilium-configConfigMap hasenable-bpf-masquerade: "false". But the agent pod was not restarted: the DaemonSet template did not change, because the component does not setrollOutCiliumPods.cilium-dbg statusstill showedMasquerading: BPF, there were 26FIB lookup faileddrops in 20 s, and the lookup still failed. - 00:33:05
kubectl -n kube-system delete pod cilium-s9dwg(the only agent pod; the DaemonSet recreates it) — exit 0. The new podcilium-mqbhpreportsMasquerading: IPTables. There were 0FIB lookup faileddrops in 20 s, andnslookup gitea.prod.skatzi.comfrom a pod returns116.202.177.24. - 00:34:18
flux reconcile source git platform— exit 0,fetched revision main@sha1:70f55b89.fac8b21is an ancestor of it, and the commit between them changes nothing undercluster/webshoporcomponents/cilium-config. - 00:34:27
flux resume kustomization cilium-config— exit 0,applied revision main@sha1:70f55b89. The HelmRelease keepsbpf.masquerade: false, andhelm history ciliumstill ends at revision 3. - 00:44:38
flux -n cert-manager reconcile source helm jetstackandflux -n external-secrets reconcile source helm external-secrets— exit 0 each; both store an artifact. These repositories poll every 24 h, so they kept the DNS error from before the fix.metallb(10 min interval) had recovered on its own at 00:33. - cert-manager v1.21.3 and external-secrets 2.13.0 installed. The
cert-managerandexternal-secretsKustomizations first timed out on their health checks, then went Ready on their next 10 min interval without further action. The others followed.
Resolution and verification¶
Resolved on 2026-10-28 at 00:56 UTC by #914 and the live recovery in #1834 (steps 7–14 above).
kubectl -n kube-system exec ds/cilium -c cilium-agent -- cilium-dbg status:Masquerading: IPTables;cilium-dbg monitor --type dropshows noFIB lookup faileddrops.nslookup gitea.prod.skatzi.comfrom a pod returns116.202.177.24.flux get sources git -Aandflux get sources helm -A: all Ready,platformatmain@sha1:70f55b89.flux get kustomizations -A --status-selector ready=falseandflux get helmreleases -A --status-selector ready=falsereturn nothing. All 12 Kustomizations are atmain@sha1:70f55b89. cert-manager, external-secrets, hcloud-csi, cilium and metallb are Ready.helm history cilium: revision 3deployed; Git and the live HelmRelease both setbpf.masquerade: false.- Nothing is suspended, and the debug pod
dns-check-1834is gone.
Follow-ups¶
-
1834 — the live recovery above; done.¶
-
1822 — the Cilium 1.18 step on webshop, now unblocked.¶
- A Cilium values change that only alters the
cilium-configConfigMap does not restart the agents; this is now in the Cilium component guide.
References¶
- Alert: none. webshop has no Alertmanager route to Taskbase yet, and its Flux events could not leave the cluster.
- Taskbase task: #1832, found during #1822
- Pull requests: Skatzi/platform#902 (trigger), Skatzi/platform#914 (fix), the #1834 report update
- Runbook sections: none fits; the ops runbook covers failed upgrades, not a release that upgrades cleanly and breaks the datapath.
Open questions¶
- Why does hetzner-mgmt (Talos v1.13.2, Cilium 1.20.2, BPF masquerading and host routing) not drop its CoreDNS queries? A Talos config that was generated before
forwardKubeDNSToHostbecame the default, or a Cilium fix after 1.17, would each explain it; neither is checked.