homek8s/infrastructure/networking/internal/gateway.yaml
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

31 lines
1.3 KiB
YAML

apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: internal
namespace: internal
labels:
dedicated: network
spec:
gatewayClassName: cilium
listeners:
- name: http-internal
protocol: HTTP
port: 8081
# Any namespace may attach a route: the security boundary for this listener
# is the HOST firewall (only 10.10.0.0/24 + pod CIDR may reach :8081), not
# the namespace.
allowedRoutes:
namespaces:
from: All
# NOTE (2026-10-27): do NOT add another hostname-less route here, and do not
# add a second listener for one. Cilium 1.20 renders ONE RouteConfiguration
# per Gateway (`listener-insecure`) shared by all of that Gateway's
# listeners, so two routes that both match `Prefix: /` with no hostnames are
# merged into a single route with `weightedClusters` weight 1/1 — every
# request then lands on a random backend, on every port of the gateway.
# Proven live: http://10.10.0.2:8081/ and :8084/ each served Grafana ~58% and
# Hubble UI ~42% of the time once Hubble's bare route existed here.
#
# A service that must answer on its bare IP therefore gets its OWN Gateway
# object, which gets its own Envoy RouteConfiguration — see
# `gateway-hubble-ui.yaml` (port 8084). One bare-IP service per Gateway.