Network plan: shared site network for WireGuard + ClusterMesh #1533
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#1533
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Network plan: shared site network for WireGuard + ClusterMesh
Address-planning ticket for the hub architecture (part of #1532, decision D10). Before any WG config lands in machine-configs, decide how the sites address each other at L3.
What must be decided
1. Overlay subnet vs routed site LANs
Two ways the hub reaches each site:
10.99.x.y), hub routes to sites by WG IP; the apiserver and agentgateway dial by WG address.10.10.6.0/24, portable10.10.5.0/24, think10.10.1.0/24), WG routes those LANs between sites. The hub reaches each apiserver by its existing IP/VIP.Trade-offs: overlay isolates addressing but forces
tls-san+ DNS to use WG IPs; routed-LAN reuses existing IPs/VIPs but requires non-overlapping LAN ranges across sites and hub-side routing entries.2. Interaction with Cilium ClusterMesh prerequisites
From #1528 and the Cilium setup docs:
ipv4NativeRoutingCIDRmust cover all pod CIDRs across all mesh sites.3. tls-san impact
Whatever address agentgateway uses to dial a backend apiserver must be in that apiserver's serving cert. For routed-LAN: existing VIP/IP SANs already cover it. For overlay: the WG IP must be added to
tlsSanExtrain the cluster module (machine-configs).4. Hub placement of agentgateway + apiserver routes
agentgateway on portable needs one route per backend. Route by
<cluster>name → resolves to the chosen L3 address. This is the data-plane map that replaces the haproxy SNI fan-out (#1527).5. Site-by-site transport reality
D2 assumption (WG/UDP works everywhere) must be checked per site; TCP-egress-only sites need a documented fallback (frp/rathole L4 tunnel; ClusterMesh may not reach them).
Deliverables
tls-sanlist per cluster decidedDepends on / linked
Terminology correction (agentgateway → current architecture). agentgateway is no longer the component on portable that dials backend apiservers. That role is the k8s-hub (Cilium Gateway API + the authz-bridge). agentgateway is now AI-only.
So in this ticket, replace "agentgateway" with "the k8s-hub (Cilium gateway)" where it appears:
Closing as superseded by lab/iac ADR-0008 and machine-configs ADR-0012, which settle site addressing and the c1 ranges. The remaining ClusterMesh prerequisites are tracked in #1528.
Reopened: the user reviewed the triage on 2026-11-22 and keeps the hub plan. It isn't incompatible with NetBird (iac ADR-0008), and Sveltos is still planned. The superseded close was a parallel session acting on the unreviewed proposal.