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).
This commit is contained in:
Lance Walters 2026-10-27 00:51:43 -04:00
commit 39d707236c
3 changed files with 83 additions and 6 deletions

View file

@ -337,3 +337,79 @@ A1NSWT7K9Dz…("Peer SiriusMobile", 10.10.0.4) age=570919s (~6.6 days)
**The URL to use on the phone: `http://10.10.0.2:8081/`** — tunnel connected,
client `AllowedIPs` covering `10.10.0.0/24`.
## 10. Verification log — 2026-10-27 (Hubble UI on `http://10.10.0.2:8084/`)
Hubble relay + UI are chart values in `infrastructure/networking/cilium/values.yaml`
(`hubble.relay.enabled`, `hubble.ui.enabled`, both pinned to siriussec); the UI
is exposed by `internal/hubble-ui` (port **8084**, own Gateway, no `hostnames`).
**Port choice cost a cycle.** The first attempt used 8082, which is free on
siriussec but held on **rpi** by the leftover `handyman-site` Docker container
(`127.0.0.1:8082`; its nginx holds `127.0.0.1:8083`). Cilium binds the listener
`0.0.0.0:8082` on *both* gateway nodes, so rpi's Envoy rejected the config
(`cannot bind '0.0.0.0:8082': Address already in use`, ~640 lines/s) and
restart-looped the node that fronts the public ingress. 8084 was verified free
on both nodes before the move. **Check `ss -lntH "sport = :<port>" | wc -l` = 0
on every node with `k8s-app=cilium-envoy`, not just the control-plane.**
```
# values -> rendered config (not a guess)
$ kubectl -n kube-system get hr cilium -o jsonpath='{.status.conditions[?(@.type=="Ready")].status} {.status.lastAttemptedRevision}'
True 1.20.1 # Ready=True
$ kubectl -n kube-system get cm cilium-values-* -o jsonpath='{.data.values\.yaml}' | grep -A2 ' relay:'
relay: {enabled: true, replicas: 1, nodeSelector: {kubernetes.io/hostname: siriussec}}
$ kubectl -n kube-system get cm cilium-config -o jsonpath='{.data.hubble-metrics}'
flow drop tcp port-distribution icmp httpV2 dns # + hubble-metrics-server :9965
$ kubectl -n kube-system get pods | grep -E 'hubble'
hubble-relay-6f87554656-wznnw 1/1 Running
hubble-ui-567ccf4fbd-skkwm 2/2 Running
$ kubectl -n kube-system logs deploy/hubble-relay --tail=3
msg=Connecting address=10.10.0.1:4244 tls=true peer=rpi
msg=Connected address=10.10.0.2:4244 tls=true peer=siriussec
msg=Connected address=10.10.0.5:4244 tls=true peer=linode
# scrape targets (Prometheus CR selects label release=kube-prometheus-stack)
serviceMonitor/kube-system/hubble/0 up 10.10.0.1:9965 / 10.10.0.2:9965 / 10.10.0.5:9965
serviceMonitor/kube-system/hubble-relay/0 up 10.244.0.75:9966
serviceMonitor/kube-system/cilium-operator/0 up 10.10.0.2:9963
23 active targets, 23 up / 0 down (was 18/18 before this card)
# flows are real (Prometheus)
hubble_flows_processed_total = 4586 hubble_drop_total = 8
hubble_tcp_flags_total = 1471 hubble_icmp_total = 36
hubble_flows_processed_total{type="PolicyVerdict"} = 178 # policy-verdict data
hubble_http_requests_total = 281
# relay's own view: hubble_relay_pool_peer_connection_status{status="READY"} = 3
# PHONE PATH — bare IP, no hosts entry, no Host header (from Legion)
$ curl -sS -o /dev/null -w '%{http_code}' http://10.10.0.2:8084/ -> 200
$ curl -sS http://10.10.0.2:8084/ | grep -o '<title>.*</title>' -> <title>Hubble UI</title>
$ curl -sS -o /dev/null -w '%{http_code}' http://10.10.0.2:8081/ -> 302 (Grafana, unbroken)
# the UI actually works, not just its shell: headless Chromium against the bare IP
# /?namespace=kube-system -> service map rendered, status dot green,
# "64.7 flows/s", "3/3 nodes", flow table populated
# backend log: GetEventsRequest parsed (ServiceMapStream) + watcher is running
# (ControlStream) -> hubble-relay:80, FlowStream streaming
$ kubectl -n kube-system logs deploy/hubble-ui -c backend --tail=2 | grep -c Stream
2
# negative 1 — LAN (from Legion, 192.168.1.0/24)
$ curl -m 3 http://192.168.1.179:8084/ -> 000 (timeout) # siriussec nft
$ curl -m 3 http://192.168.1.125:8084/ -> 000 (timeout) # rpi ufw
# negative 2 — internet: no hubble/lab.internal entry in the cloudflared ingress
# (9 hostnames, all public sites), and no tunnel points at 8084.
# regression: forgejo.siriusdevops.com -> 200 through the tunnel; Grafana 302.
# envoy health after the move
kubectl -n kube-system get pods -l k8s-app=cilium-envoy # both 1/1, RESTARTS 0
logs <rpi pod> --since=60s | grep -c 'cannot bind' # 0
```
**Only `10.10.0.2` answers.** `10.10.0.1:8081` and `10.10.0.1:8084` both return
**503 after exactly 5 s from rpi itself** and time out over the mesh — Envoy on a
node that does not run the backend completes the TCP handshake and never ACKs
(the same co-location fault as the public gateway). The Gateway status lists
both node addresses because the class schedules on every `gateway=true` node;
the working address is the one the backends are pinned to, `10.10.0.2`.