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.
This commit is contained in:
parent
8939cbdd78
commit
dcb708dff4
4 changed files with 43 additions and 21 deletions
23
infrastructure/networking/internal/gateway-hubble-ui.yaml
Normal file
23
infrastructure/networking/internal/gateway-hubble-ui.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: hubble-ui
|
||||
namespace: internal
|
||||
labels:
|
||||
dedicated: network
|
||||
annotations:
|
||||
# Why a second Gateway instead of a second listener on `internal`:
|
||||
# Cilium renders one RouteConfiguration per Gateway shared by all its
|
||||
# listeners, so a hostname-less route on any listener of `internal` would
|
||||
# merge with Grafana's into one 50/50 weighted route. Its own Gateway gives
|
||||
# it its own RouteConfiguration.
|
||||
sirius.dev/purpose: bare-IP listener for the Hubble UI (WireGuard only)
|
||||
spec:
|
||||
gatewayClassName: cilium
|
||||
listeners:
|
||||
- name: http-internal
|
||||
protocol: HTTP
|
||||
port: 8082
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
Loading…
Reference in a new issue