2026-09-15 00:15:13 -04:00
|
|
|
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
|
2026-10-27 00:12:38 -04:00
|
|
|
# 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
|
2026-10-27 00:38:47 -04:00
|
|
|
# the namespace.
|
2026-09-15 00:15:13 -04:00
|
|
|
allowedRoutes:
|
|
|
|
|
namespaces:
|
2026-10-27 00:12:38 -04:00
|
|
|
from: All
|
2026-10-27 00:38:47 -04:00
|
|
|
# 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 :8082/ each served Grafana ~58% and
|
|
|
|
|
# Hubble UI ~42% of the time once Hubble's bare route existed here.
|
2026-10-27 00:35:09 -04:00
|
|
|
#
|
2026-10-27 00:38:47 -04:00
|
|
|
# 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 8082). One bare-IP service per Gateway.
|