cillium gateway config switch to linode node as gateway

This commit is contained in:
Sirius DevOps 2026-09-14 23:46:40 -04:00
commit c03c23bc4c
No known key found for this signature in database
16 changed files with 620 additions and 1 deletions

View file

@ -4,6 +4,8 @@ metadata:
name: forgejo
namespace: forgejo
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
@ -17,7 +19,7 @@ spec:
kubernetes.io/hostname: siriussec
containers:
- name: forgejo
image: codeberg.org/forgejo/forgejo:10
image: codeberg.org/forgejo/forgejo:16
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000

View file

@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: siriusdevops-contact
namespace: siriusdevops
spec:
replicas: 1
selector:
matchLabels:
app: siriusdevops-contact
template:
metadata:
labels:
app: siriusdevops-contact
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: linode
containers:
- name: contact-api
image: siriusdevops-contact:dev
imagePullPolicy: Never
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]
ports:
- containerPort: 8090
name: http
env:
- name: TG_TOKEN
valueFrom:
secretKeyRef:
name: siriusdevops-contact
key: TG_TOKEN
- name: TG_CHAT
valueFrom:
secretKeyRef:
name: siriusdevops-contact
key: TG_CHAT
readinessProbe:
httpGet:
path: /health
port: 8090
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 256Mi

View file

@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: siriusdevops-site
namespace: siriusdevops
spec:
replicas: 1
selector:
matchLabels:
app: siriusdevops-site
template:
metadata:
labels:
app: siriusdevops-site
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: linode
containers:
- name: nginx
image: siriusdevops-site:dev
imagePullPolicy: Never
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
memory: 256Mi

View file

@ -0,0 +1,27 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: siriusdevops
namespace: siriusdevops
spec:
parentRefs:
- name: public
namespace: gateway-system
hostnames:
- siriusdevops.com
- www.siriusdevops.com
rules:
- matches:
- path:
type: PathPrefix
value: /api/contact
backendRefs:
- name: siriusdevops-contact
port: 8090
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: siriusdevops-site
port: 80

View file

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployment-site.yaml
- deployment-api.yaml
- service-site.yaml
- service-api.yaml
- httproute.yaml

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: siriusdevops

View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: siriusdevops-contact
namespace: siriusdevops
spec:
selector:
app: siriusdevops-contact
ports:
- name: http
port: 8090
targetPort: 8090

View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: siriusdevops-site
namespace: siriusdevops
spec:
selector:
app: siriusdevops-site
ports:
- name: http
port: 80
targetPort: 80

View file

@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/forgejo
- ../base/siriusdevops

View file

@ -0,0 +1,71 @@
---
title: "Home kubeadm cluster — native routing over WireGuard"
topic: "technical"
data_type: "system/structure"
complexity: "complex"
point_count: 11
source_language: "en"
user_language: "en"
---
## Main Topic
A three-node kubeadm cluster whose pod network is Cilium native routing over a WireGuard hub-and-spoke mesh (Pi hub, T480 control-plane, Linode spoke on a second tunnel), with public HTTP via Cloudflare tunnel to a Cilium Gateway pinned on siriussec.
## Learning Objectives
After viewing this infographic, the viewer should understand:
1. Which box is the WireGuard hub vs control-plane vs cloud spoke, and which CIDRs live where
2. How a packet from the Pi (or Linode) reaches a Forgejo pod on siriussec without VXLAN
3. Why the public Gateway listener must sit on siriussec even though cloudflared runs on the Pi
## Target Audience
- **Knowledge Level**: Intermediate/Expert (Lance; already operates the cluster)
- **Context**: Document the live datapath after switching off VXLAN
- **Expectations**: A detailed diagram of nodes, tunnels, routes, and the ingress path
## Content Type Analysis
- **Data Structure**: Spatial topology (nodes + two WG interfaces) plus a packet path and an ingress path
- **Key Relationships**: Pi is hub for wg0 and wg-remote; Cilium autoDirectNodeRoutes via InternalIPs; Gateway same-node constraint
- **Visual Opportunities**: Node boxes with IPs/CIDRs; hub-spoke tunnels; numbered packet hops; ingress arrow Internet→CF→Pi→T480:8080→pod
## Key Data Points (Verbatim)
- "kubeadm v1.36.4"
- "API https://10.10.0.2:6443 (VPN-only)"
- "Cilium 1.18.13"
- "routingMode: native"
- "autoDirectNodeRoutes: true"
- "ipv4NativeRoutingCIDR: 10.244.0.0/16"
- "no VXLAN (cilium_vxlan device does not exist)"
- "rpi … wg0 10.10.0.1 … wg-remote 10.20.0.2 … Pod CIDR 10.244.1.0/24"
- "siriussec … wg0 10.10.0.2 … Pod CIDR 10.244.0.0/24 … LAN 192.168.1.179"
- "linode … dummy-k8s 10.10.0.5 … wg0 10.20.0.1 … Pod CIDR 10.244.2.0/24"
- "Legion … wg0 10.10.0.3 … not a node"
- "Spoke AllowedIPs: 10.10.0.0/24, 10.244.0.0/16. Not a full tunnel."
- "Pi wg0 extra_allowed_ips for peer siriussec: 10.10.0.2/32, 10.244.0.0/24"
- "wg-remote … AllowedIPs 10.20.0.0/24, 10.10.0.5/32, 10.244.2.0/24"
- "Forgejo 10.244.0.211"
- "Pi ping+curl http://10.244.0.211:3000 → 200"
- "Linode ping+curl → 200 (~20ms)"
- "rpi pod wget → HTTP 200"
- "Internet → Cloudflare TLS → cloudflared (systemd on rpi) → http://192.168.1.179:8080 → Cilium Gateway hostNetwork on siriussec"
- "reserved:ingress 10.244.1.61"
- "SYN-ACK returns, Envoy never ACKs"
- "https://forgejo.siriusdevops.com/ → 200"
- "dedicated=network:PreferNoSchedule"
- "label gateway=true"
## Layout × Style Signals
- Content type: system/structure + hub-and-spoke topology → hub-spoke or structural-breakdown or isometric-map
- Tone: technical homelab, neon/flashy for personal projects → cyberpunk-neon or technical-schematic or pop-laboratory
- Audience: operator who already knows the cluster → dense, labeled IPs not dumbed down
- Complexity: complex (9+ points) → dense-modules or structural-breakdown
## Design Instructions (from user input)
- Detailed diagram of how this (native routing over WireGuard + Gateway) works
- Use baoyu-infographic
- Personal-project visual preference: neon/flashy (not the quiet OSINT HUD)
## Recommended Combinations
1. **hub-spoke + cyberpunk-neon** (Recommended): The mesh is literally hub-and-spoke; neon matches personal-project style; Pi sits in the center with spokes carrying node IP + pod CIDR.
2. **structural-breakdown + technical-schematic**: Exploded layers (Internet / CF / WG / Cilium routes / pods) as a blueprint.
3. **isometric-map + pop-laboratory**: Spatial map of house vs VPS with coordinate-precise CIDR labels.
4. **dense-modules + cyberpunk-neon**: High-density panels (nodes, routes table, packet walk, ingress, Envoy caveat).

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 KiB

View file

@ -0,0 +1,139 @@
Create a professional infographic following these specifications:
## Image Specifications
- **Type**: Infographic
- **Layout**: structural-breakdown
- **Style**: technical-schematic
- **Aspect Ratio**: 9:16
- **Language**: en
## Core Principles
- Follow the layout structure precisely for information architecture
- Apply style aesthetics consistently throughout
- Keep information concise, highlight keywords and core concepts
- Use ample whitespace for visual clarity
- Maintain clear visual hierarchy
- Preserve all CIDRs, IPs, and status codes exactly — do not round or paraphrase
## Text Requirements
- All text in English
- Technical stencil or clean sans-serif
- All-caps labels where the style requires
- Main title prominent and readable
- Labels clear and appropriately sized
## Layout Guidelines
Internal structure visualization with labeled parts or layers.
- Central subject: the home kubeadm cluster as a cutaway / exploded stack
- Parts or layers clearly shown, top to bottom
- Labels with callout lines
- Exploded or cutaway view
- Optional zoomed detail sections
Visual elements: main subject clearly rendered; callout lines with dots/arrows; label boxes at endpoints; numbered parts; layer boundaries.
Text placement: title at top; part/layer labels at callouts; brief descriptions in boxes; legend for numbered systems.
Layers from TOP (public) to BOTTOM (pods):
1. INTERNET / CLOUDFLARE TLS
2. RPI EDGE — cloudflared systemd + wgportal
3. WIREGUARD HUB-AND-SPOKE — wg0 k8s-mesh and wg-remote
4. CILIUM NATIVE ROUTING — no VXLAN, autoDirectNodeRoutes
5. WORKLOADS — Forgejo + CNPG on siriussec
Side callout / cutaway: ENVOY CAVEAT on rpi (reserved:ingress)
## Style Guidelines
Technical diagrams with engineering precision and clean geometry.
Color palette:
- Primary: Blues (#2563EB), teals, grays, white lines
- Background: Deep blue (#1E3A5F) blueprint with faint grid
- Accents: Amber highlights (#F59E0B), cyan callouts
Variant: Blueprint — white on blue, measurements, grid
Visual elements: geometric precision; grid pattern; dimension lines; technical symbols; clean vector shapes; consistent stroke weights
Typography: technical stencil or clean sans-serif; all-caps labels; measurement annotations
---
Generate the infographic based on the content below:
TITLE: HOME KUBEADM — NATIVE ROUTING OVER WIREGUARD
SUBTITLE: kubeadm v1.36.4 · Cilium 1.18.13 · routingMode native · API https://10.10.0.2:6443 VPN-ONLY
LAYER 1 — INTERNET
Internet → Cloudflare TLS → origin http://192.168.1.179:8080
Public check: https://forgejo.siriusdevops.com/ → 200
LAYER 2 — RPI EDGE (hub)
rpi arm64 · traffic/worker · taint dedicated=network:PreferNoSchedule
LAN 192.168.1.125
wg0 10.10.0.1/24 ListenPort 51820 (k8s-mesh)
wg-remote 10.20.0.2/24
Pod CIDR 10.244.1.0/24 · cilium_host 10.244.1.240
Runs: cloudflared (systemd), wgportal/wg-portal:v2 host-network UI :8888
nginx is off
LAYER 3 — WIREGUARD SPOKES
siriussec ThinkPad T480 · control-plane AND worker · label gateway=true
LAN 192.168.1.179 · wg0 10.10.0.2 · Pod CIDR 10.244.0.0/24 · cilium_host 10.244.0.243 · amd64
Hub extra_allowed_ips: 10.10.0.2/32, 10.244.0.0/24
Spoke AllowedIPs: 10.10.0.0/24, 10.244.0.0/16 (not a full tunnel)
linode worker · dedicated=network PreferNoSchedule
dummy-k8s 10.10.0.5 · wg0 10.20.0.1/24 ListenPort 51820 · Pod CIDR 10.244.2.0/24 · cilium_host 10.244.2.78
NOT a wg0 peer — lives on Pi wg-remote
wg-remote AllowedIPs: 10.20.0.0/24, 10.10.0.5/32, 10.244.2.0/24
Linode AllowedIPs include 10.20.0.2/32, 10.10.0.0/24, 10.96.0.0/12, 10.244.0.0/16
Legion admin kubectl/k9s ONLY — not a node · wg0 10.10.0.3
ip_forward=1 on Pi, siriussec, linode
LAYER 4 — CILIUM NATIVE ROUTES (no VXLAN, cilium_vxlan does not exist)
kubeProxyReplacement true · autoDirectNodeRoutes true · ipv4NativeRoutingCIDR 10.244.0.0/16
Route table:
siriussec: 10.244.1.0/24 via 10.10.0.1 dev wg0 · 10.244.2.0/24 via 10.10.0.5 dev wg0
rpi: 10.244.0.0/24 via 10.10.0.2 dev wg0 · 10.244.2.0/24 via 10.10.0.5 dev wg-remote
linode: 10.244.0.0/24 via 10.10.0.2 dev wg0 · 10.244.1.0/24 via 10.10.0.1 dev wg0
PACKET WALK (numbered 1–4) dest Forgejo 10.244.0.211:
1. Route 10.244.0.211 via 10.10.0.2 dev wg0
2. Cryptokey: dest 10.244.0.0/16 matches spoke→hub AllowedIPs, encrypted to Pi
3. Pi decrypts; dest 10.244.0.0/24 matches siriussec extra_allowed_ips; encrypted to T480
4. T480 cilium_host → pod
Verified: Pi curl http://10.244.0.211:3000 → 200 · Linode curl → 200 (~20ms) · rpi pod wget HTTP 200
LAYER 5 — WORKLOADS ON SIRIUSSEC
Cilium Gateway hostNetwork :8080 (gateway=true)
HTTPRoute forgejo.siriusdevops.com → Service ClusterIP 10.110.27.237:3000
Forgejo pod 10.244.0.211 · CNPG pg-1 1 replica local-path
Default pods land on siriussec
LAN: curl -H Host: forgejo.siriusdevops.com http://192.168.1.179:8080/ → 200
CUTAWAY CALLOUT — DO NOT BIND GATEWAY ON RPI
Cilium Envoy on a remote node: SYN sourced as reserved:ingress 10.244.1.61
SYN-ACK returns · Envoy never ACKs
Pod-to-pod and host curl over WG are fine
Pin Gateway listener to the same node as app pods
Text labels (in en):
"HOME KUBEADM — NATIVE ROUTING OVER WIREGUARD"
"kubeadm v1.36.4"
"Cilium 1.18.13"
"routingMode: native"
"API https://10.10.0.2:6443 VPN-ONLY"
"INTERNET / CLOUDFLARE TLS"
"RPI EDGE HUB"
"wg0 k8s-mesh :51820"
"wg-remote"
"SIRIUSSEC CP+WORKER gateway=true"
"LINODE SPOKE"
"LEGION NOT A NODE"
"NO VXLAN"
"PACKET TO 10.244.0.211"
"200"
"reserved:ingress 10.244.1.61"
"SYN-ACK returns, Envoy never ACKs"
"192.168.1.179:8080"

View file

@ -0,0 +1,74 @@
# Home kubeadm cluster — native routing over WireGuard
## Nodes
| Node | Role | LAN | WireGuard | Pod CIDR | Arch |
|------|------|-----|-----------|----------|------|
| rpi | traffic/worker, WG hub, cloudflared, wgportal | 192.168.1.125 | wg0 10.10.0.1 (k8s-mesh), wg-remote 10.20.0.2 | 10.244.1.0/24 | arm64 |
| siriussec (ThinkPad T480) | control-plane and worker; label gateway=true | 192.168.1.179 | wg0 10.10.0.2 | 10.244.0.0/24 | amd64 |
| linode | worker, dedicated=network PreferNoSchedule | public VPS | wg0 10.20.0.1, dummy-k8s 10.10.0.5 | 10.244.2.0/24 | amd64 |
| Legion | admin kubectl/k9s only — not a node | — | wg0 10.10.0.3 | none | amd64 |
Cluster: kubeadm v1.36.4. API https://10.10.0.2:6443 (VPN-only). nft on T480 accepts :6443 on lo, wg0, and 10.244.0.0/16; drops other :6443.
rpi taint: dedicated=network:PreferNoSchedule. Label dedicated=network. Default pods land on siriussec.
linode taint: dedicated=network:PreferNoSchedule. Label dedicated=network.
Pin traffic/light: nodeSelector {dedicated: network}.
Pin app/DB/Forgejo: nodeSelector {kubernetes.io/hostname: siriussec}.
## WireGuard hub-and-spoke
Pi is the hub.
- Interface wg0 / k8s-mesh on Pi: Address 10.10.0.1/24, ListenPort 51820.
- Pi wg0 extra_allowed_ips for peer siriussec: 10.10.0.2/32, 10.244.0.0/24.
- Pi wg0 peers legion 10.10.0.3/32, SiriusMobile 10.10.0.4/32.
- Spoke AllowedIPs (siriussec, Legion): 10.10.0.0/24, 10.244.0.0/16. Not a full tunnel.
- Linode is NOT a wg0 peer. Linode is on Pi interface wg-remote: Pi Address 10.20.0.2/24, peer AllowedIPs 10.20.0.0/24, 10.10.0.5/32, 10.244.2.0/24. Linode Address 10.20.0.1/24, ListenPort 51820, AllowedIPs include 10.20.0.2/32, 10.10.0.0/24, 10.96.0.0/12, 10.244.0.0/16.
- wgportal: official image wgportal/wg-portal:v2, host network on Pi, UI http://192.168.1.125:8888, manages wg0 only.
ip_forward=1 on Pi, siriussec, linode.
## Cilium native routing
Cilium 1.18.13, kubeProxyReplacement true, no kube-proxy, no VXLAN (cilium_vxlan device does not exist).
- routingMode: native
- autoDirectNodeRoutes: true
- ipv4NativeRoutingCIDR: 10.244.0.0/16
- enableIPv4Masquerade: true
- ipam cluster-pool 10.244.0.0/16 mask 24
- k8sServiceHost 10.10.0.2 k8sServicePort 6443
Direct routes installed:
| Node | 10.244.0.0/24 (siriussec pods) | 10.244.1.0/24 (rpi pods) | 10.244.2.0/24 (linode pods) |
|------|-------------------------------|--------------------------|------------------------------|
| siriussec | local via cilium_host 10.244.0.243 | via 10.10.0.1 dev wg0 | via 10.10.0.5 dev wg0 |
| rpi | via 10.10.0.2 dev wg0 | local via cilium_host 10.244.1.240 | via 10.10.0.5 dev wg-remote |
| linode | via 10.10.0.2 dev wg0 | via 10.10.0.1 dev wg0 | local via cilium_host 10.244.2.78 |
Packet path example — rpi host or pod to Forgejo 10.244.0.211:
1. Route: 10.244.0.211 via 10.10.0.2 dev wg0
2. WireGuard cryptokey: dest 10.244.0.0/16 matches spoke→hub AllowedIPs, encrypted to Pi
3. Pi decrypts; dest 10.244.0.0/24 matches siriussec extra_allowed_ips; encrypted to T480
4. T480 delivers via cilium_host to the pod
Verified: Pi ping+curl http://10.244.0.211:3000 → 200. Linode ping+curl → 200 (~20ms). rpi pod wget → HTTP 200.
## Public ingress
Internet → Cloudflare TLS → cloudflared (systemd on rpi) → http://192.168.1.179:8080 → Cilium Gateway hostNetwork on siriussec (label gateway=true) → HTTPRoute → Service.
Gateway: gateway-system/public, class cilium, listener HTTP 8080, allowedRoutes from All.
HTTPRoute forgejo.siriusdevops.com parentRef public/gateway-system.
Forgejo Deployment + ClusterIP 10.110.27.237:3000 and CNPG pg-1 on siriussec.
nginx is off.
Cilium Envoy on a remote node still cannot finish TCP to backends: SYN goes out wg0 sourced as reserved:ingress 10.244.1.61, SYN-ACK returns, Envoy never ACKs. Pod-to-pod and host curl over WG are fine. Pin Gateway listener to the same node as app pods. Do not bind it on rpi.
Public https://forgejo.siriusdevops.com/ → 200. LAN curl -H 'Host: forgejo.siriusdevops.com' http://192.168.1.179:8080/ → 200.
## Control plane
API only on WireGuard 10.10.0.2:6443. Legion kubectl context siriussec. GitOps repo ~/Projects/homek8s. CNPG 1 replica, local-path on siriussec /opt/local-path-provisioner.

View file

@ -0,0 +1,173 @@
# Home kubeadm: native routing over WireGuard
## Overview
Three kubeadm nodes share a pod network by routing 10.244.0.0/16 natively across a WireGuard hub-and-spoke (Pi hub). Public HTTP terminates on Cloudflare, then hits a Cilium Gateway bound on siriussec.
## Learning Objectives
The viewer will understand:
1. Which box is the WireGuard hub vs control-plane vs cloud spoke, and which CIDRs live where
2. How a packet from the Pi (or Linode) reaches a Forgejo pod on siriussec without VXLAN
3. Why the public Gateway listener must sit on siriussec even though cloudflared runs on the Pi
---
## Section 1: Nodes
**Key Concept**: Four boxes — three Kubernetes nodes plus Legion as admin-only.
**Content**:
- rpi: traffic/worker, WG hub, cloudflared, wgportal; LAN 192.168.1.125; wg0 10.10.0.1; wg-remote 10.20.0.2; Pod CIDR 10.244.1.0/24; arm64
- siriussec (ThinkPad T480): control-plane and worker; label gateway=true; LAN 192.168.1.179; wg0 10.10.0.2; Pod CIDR 10.244.0.0/24; amd64
- linode: worker, dedicated=network PreferNoSchedule; dummy-k8s 10.10.0.5; wg0 10.20.0.1; Pod CIDR 10.244.2.0/24; amd64
- Legion: admin kubectl/k9s only — not a node; wg0 10.10.0.3
- Cluster: kubeadm v1.36.4. API https://10.10.0.2:6443 (VPN-only)
- rpi taint: dedicated=network:PreferNoSchedule
- Default pods land on siriussec
**Visual Element**:
- Type: diagram
- Subject: four labeled machine cards with role, IPs, pod CIDR
- Treatment: hub Pi larger/center; T480 and Linode as spokes; Legion dashed/admin
**Text Labels**:
- Headline: "Nodes"
- Labels: "rpi 10.10.0.1 / 10.244.1.0/24", "siriussec 10.10.0.2 / 10.244.0.0/24", "linode 10.10.0.5 / 10.244.2.0/24", "Legion 10.10.0.3 not a node", "API :6443 VPN-only"
---
## Section 2: WireGuard hub-and-spoke
**Key Concept**: Pi is the hub; Linode uses a second tunnel (wg-remote), not wg0.
**Content**:
- Interface wg0 / k8s-mesh on Pi: Address 10.10.0.1/24, ListenPort 51820
- Pi wg0 extra_allowed_ips for peer siriussec: 10.10.0.2/32, 10.244.0.0/24
- Spoke AllowedIPs (siriussec, Legion): 10.10.0.0/24, 10.244.0.0/16. Not a full tunnel.
- Linode is NOT a wg0 peer. Linode is on Pi interface wg-remote: AllowedIPs 10.20.0.0/24, 10.10.0.5/32, 10.244.2.0/24
- Linode AllowedIPs include 10.20.0.2/32, 10.10.0.0/24, 10.96.0.0/12, 10.244.0.0/16
- wgportal manages wg0 only
- ip_forward=1 on Pi, siriussec, linode
**Visual Element**:
- Type: hub-spoke diagram
- Subject: Pi center, two tunnel types (wg0 vs wg-remote) as different colored links
- Treatment: AllowedIPs printed on each link
**Text Labels**:
- Headline: "WireGuard hub-and-spoke"
- Subhead: "Pi is the hub"
- Labels: "wg0 k8s-mesh :51820", "wg-remote", "AllowedIPs 10.10.0.0/24 + 10.244.0.0/16", "extra 10.244.0.0/24 behind siriussec", "extra 10.244.2.0/24 behind linode"
---
## Section 3: Cilium native routes
**Key Concept**: No VXLAN; autoDirectNodeRoutes via WireGuard InternalIPs.
**Content**:
- Cilium 1.18.13, kubeProxyReplacement true, no kube-proxy
- routingMode: native
- autoDirectNodeRoutes: true
- ipv4NativeRoutingCIDR: 10.244.0.0/16
- cilium_vxlan device does not exist
- siriussec: 10.244.1.0/24 via 10.10.0.1 dev wg0; 10.244.2.0/24 via 10.10.0.5 dev wg0
- rpi: 10.244.0.0/24 via 10.10.0.2 dev wg0; 10.244.2.0/24 via 10.10.0.5 dev wg-remote
- linode: 10.244.0.0/24 via 10.10.0.2 dev wg0; 10.244.1.0/24 via 10.10.0.1 dev wg0
**Visual Element**:
- Type: table / route map
- Subject: per-node route rows
- Treatment: local CIDRs filled, remote CIDRs as arrows along WG
**Text Labels**:
- Headline: "Native routing — no VXLAN"
- Labels: "via 10.10.0.2 dev wg0", "via 10.10.0.5 dev wg-remote", "cilium_host local"
---
## Section 4: Packet walk to Forgejo
**Key Concept**: Dest 10.244.0.211 is cryptokey-routed to the hub, then to siriussec.
**Content**:
- Forgejo 10.244.0.211
- Route: 10.244.0.211 via 10.10.0.2 dev wg0
- WireGuard cryptokey: dest 10.244.0.0/16 matches spoke→hub AllowedIPs, encrypted to Pi
- Pi decrypts; dest 10.244.0.0/24 matches siriussec extra_allowed_ips; encrypted to T480
- T480 delivers via cilium_host to the pod
- Pi ping+curl http://10.244.0.211:3000 → 200
- Linode ping+curl → 200 (~20ms)
- rpi pod wget → HTTP 200
**Visual Element**:
- Type: numbered flow
- Subject: four hops with padlock for WG encrypt/decrypt
- Treatment: left-to-right sequence
**Text Labels**:
- Headline: "Packet to 10.244.0.211"
- Labels: "1 route via 10.10.0.2", "2 encrypt to hub", "3 extra_allowed_ips 10.244.0.0/24", "4 cilium_host → pod", "200"
---
## Section 5: Public ingress vs Envoy caveat
**Key Concept**: cloudflared is on the Pi; the Gateway listener is on siriussec because remote Envoy cannot finish TCP.
**Content**:
- Internet → Cloudflare TLS → cloudflared (systemd on rpi) → http://192.168.1.179:8080 → Cilium Gateway hostNetwork on siriussec → HTTPRoute → Service
- Gateway: gateway-system/public, listener HTTP 8080
- HTTPRoute forgejo.siriusdevops.com
- ClusterIP 10.110.27.237:3000
- nginx is off
- Cilium Envoy on a remote node: SYN sourced as reserved:ingress 10.244.1.61, SYN-ACK returns, Envoy never ACKs
- Pin Gateway listener to the same node as app pods (gateway=true)
- https://forgejo.siriusdevops.com/ → 200
- LAN curl Host forgejo.siriusdevops.com http://192.168.1.179:8080/ → 200
**Visual Element**:
- Type: flow plus callout
- Subject: public path as a gold arrow; failed Pi Envoy path as a broken red arrow
- Treatment: do-not-bind-on-rpi stamp
**Text Labels**:
- Headline: "Ingress on siriussec :8080"
- Labels: "cloudflared on rpi", "192.168.1.179:8080", "HTTPRoute", "reserved:ingress 10.244.1.61", "SYN-ACK returns, Envoy never ACKs"
---
## Data Points (Verbatim)
### Statistics
- "kubeadm v1.36.4"
- "Cilium 1.18.13"
- "API https://10.10.0.2:6443 (VPN-only)"
- "ipv4NativeRoutingCIDR: 10.244.0.0/16"
- "Forgejo 10.244.0.211"
- "Pi ping+curl http://10.244.0.211:3000 → 200"
- "Linode ping+curl → 200 (~20ms)"
- "https://forgejo.siriusdevops.com/ → 200"
- "reserved:ingress 10.244.1.61"
### Key Terms
- **routingMode: native**: Cilium setting; no VXLAN
- **autoDirectNodeRoutes**: installs pod-CIDR routes via node InternalIPs
- **extra_allowed_ips**: hub cryptokey extra networks behind a peer
- **gateway=true**: node label that binds Cilium Gateway hostNetwork :8080
---
## Design Instructions
### Style Preferences
- Personal-project neon/flashy (not quiet HUD)
- Detailed, operator-grade labels (keep exact CIDRs and IPs)
### Layout Preferences
- Diagram of how the mesh + Gateway works
- Hub-and-spoke is the real topology
### Other Requirements
- baoyu-infographic
- Language: English
- No credentials, tokens, or private keys

View file

@ -18,6 +18,9 @@ gatewayAPI:
envoy:
enabled: true
nodeSelector:
node-role.kubernetes.io/gateway: "true"
operator:
replicas: 1