cilium (Update): route c1 ClusterIPs and Pi PodCIDRs to the LAN (#1740) #1748
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1748
Loading…
Reference in a new issue
No description provided.
Delete branch "c1-clusterip-bgp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1740. Draft: not for merge until the decisions below are made. It rolls Cilium on all seven c1 nodes.
LAN clients get direct access to c1 ClusterIPs. The c1 recursor already resolves
<svc>.<ns>.svc.c1.caosh.int.animeteamspeak.moeLAN-wide (#1673), but the address it returns doesn't route yet.Changes
clusters/c1/cilium/bgp/bgpadvertisement.yaml:ClusterIPis added to the Service addresses. Each ClusterIP goes out as a /32 (and a /128 for dual-stack Services) from all three thinks, and the routers ECMP across them.clusters/c1/cilium/release/helmrelease.yaml:bpf.lbExternalClusterIP: true. Without it Cilium drops off-cluster traffic to a ClusterIP even with a route.cilium-values-nixsets nobpfkey, so this layer only adds the key.What I checked (2026-11-19, from arch-ws on VLAN 30)
10.30.100.x10.30.128-130.x10.30.192.0/2010.30.131-134.xRouter side: no change. RouterOS accepts every received route, because no input filter is set (iac
bgp.tf, input filters are the rest of iac#125), and the output chain advertises nothing back.Decisions for you
ZONE-TRUSTED(VLAN 30 and the legacy LAN, where mini lives) forwards to anything. mgmt, iot and guest reach only the WAN and the recursor. servers reaches only the WAN. Merging as-is therefore means trusted clients reach every c1 Service, the internal ones included: the PowerDNS API onpdns-primary:8081, databases, metrics, webhooks. c1 has 4 network policies in total. Options:10.30.192.0/20only on listed ports. That's a separate iac PR.firewall6.tflets trusted reach anything, so the same exposure applies over v6. Fine, or filter?Rollout
bpf.lbExternalClusterIPchangescilium-config, andoperator.rollOutPodsrolls the operator and every agent. Agent restarts keep the loaded datapath, but it's still a CNI roll on all seven nodes: merge while watching.After merge:
ip routeon a router (or/rest/ip/route) shows10.30.192.x/32via10.30.20.21/.22/.23.curl -k https://kubernetes.default.svc.c1.caosh.int.animeteamspeak.moe/versionfrom arch-ws answers (HTTP 401/403 is fine).dig @pdns-secondary-0.dns.svc.c1.caosh.int.animeteamspeak.moe int.animeteamspeak.moe SOAanswers through the ClusterIP10.30.192.55.Pis peer too
bgpclusterconfig.yamlnow selectsnode-classthink and pi. Each Pi announces its own PodCIDR and the Service /32s; the routers ECMP over seven nodes instead of three. Router side: lab/iac#166 adds the four Pi connections; merge order between the two does not matter (each side idles until the other exists).Trade-off to know: Pis have 1G NICs (and the Ceph mons). With eTP Cluster Services (the gateway,
pdns-auth, every ClusterIP) a share of flows now enters through a Pi and is forwarded to the backend. If that matters, split it: a secondCiliumBGPPeerConfigfor the Pis that advertises only their PodCIDR.Not in this PR
kustomize buildand the pre-push gate.WIP: cilium (Update): route c1 ClusterIPs to the LAN (#1740)to WIP: cilium (Update): route c1 ClusterIPs and Pi PodCIDRs to the LAN (#1740)WIP: cilium (Update): route c1 ClusterIPs and Pi PodCIDRs to the LAN (#1740)to cilium (Update): route c1 ClusterIPs and Pi PodCIDRs to the LAN (#1740)