Commit graph homek8s/infrastructure/networking/internal/gateway-hubble-ui.yaml
Author SHA1 Message Date
Lance Walters
39d707236c docs: Hubble UI on 8084, verified end-to-end by bare IP; correct the 8084 comment
- internal-wireguard-services §10: Hubble verification log (HR Ready, rendered
  hubble.metrics list, relay connected to all 3 agents, 23/23 scrape targets up,
  flow/drop/TCP/ICMP/PolicyVerdict counters non-zero, headless-browser service
  map with 64.7 flows/s and 3/3 nodes, LAN + internet negatives, regression).
  Records the port cycle: 8082 is held on rpi by the leftover handyman-site
  Docker container (and 8083 by its nginx), so the listener must be checked free
  on EVERY cilium-envoy node, and notes that only 10.10.0.2 answers (Envoy on a
  node without the backend 503s after 5s).
- gateway-hubble-ui.yaml: stop asserting a bind error for 8084 — 8084 was
  verified free on both nodes and binds; the comment now explains the rule
  without claiming a false fact.
- cluster-overview: internal gateway section + namespaces (monitoring, hubble
  pods, the second gateway).
2026-10-27 00:51:43 -04:00
Lance Walters
a287dc8dfa hubble: move the UI listener to 8084 — 8082 is taken on rpi
Cilium binds every Gateway listener on 0.0.0.0 on EVERY gateway node, and the Pi
still runs leftover Docker site containers: handyman-site holds 127.0.0.1:8082
and its nginx holds 127.0.0.1:8083 (a 127.0.0.1 bind still blocks a 0.0.0.0
one). Binding 8082 there made xDS reject the listener on rpi
("cannot bind '0.0.0.0:8082': Address already in use" at ~2/s) and restarted
cilium-envoy on the node that fronts the public ingress — the UI worked or not
depending on which node answered.

8084 measured free on both gateway nodes (rpi, siriussec) before the change.
Firewall moved with it: siriussec nft dport set { 8081, 8084 }, rpi ufw trio for
8084 inserted above the LAN catch-all and the 8082 rules deleted.

URL: http://10.10.0.2:8084/ (bare IP, no /etc/hosts) — same as Grafana on 8081.
2026-10-27 00:44:36 -04:00
Lance Walters
dcb708dff4 hubble: bare-IP UI on its own Gateway (8082) — Cilium merges hostname-less routes
Cilium 1.20 renders ONE RouteConfiguration per Gateway, shared by every listener
of that Gateway. Two routes that both match `Prefix: /` with no hostnames are
merged into a single route with `weightedClusters` 1/1, so a second bare-IP
route on the `internal` gateway (even on a second port) makes BOTH services
random: measured 12 requests each to :8081 and :8082 returning Grafana 7x and
Hubble UI 5x. Splitting by port does not help.

Hubble UI therefore gets its own Gateway (`internal/hubble-ui`, listener
http-internal on 8082, own RouteConfiguration) and its route has no hostnames,
so `http://10.10.0.2:8082/` and `http://hubble.lab.internal:8082/` both serve the
UI while Grafana keeps :8081 to itself. Documented as the rule in gateway.yaml:
one bare-IP service per Gateway.
2026-10-27 00:38:47 -04:00