homek8s/infrastructure/networking/internal/gateway-customer1-odoo.yaml

31 lines
1.3 KiB
YAML
Raw Normal View History

# Own Gateway for Odoo because each bare-IP (hostname-less) service needs its own
# RouteConfiguration: Cilium renders one per Gateway and merges all hostname-less
# routes inside it into a single weighted route. Sharing a Gateway with Grafana
# (8081) / Hubble (8084) / Metabase (8085) or with the sibling :8087 listener
# here would make both ports answer for a random backend.
#
# Port 8086 must be free on EVERY node running cilium-envoy (siriussec 10.10.0.2
# is the only `gateway=true` node). Envoy binds 0.0.0.0:<port> hostNetwork, so
# the host firewall (infrastructure/networking/internal/host-firewall/) must be
# installed BEFORE this is pushed; otherwise the listener is open on the LAN the
# moment it is programmed.
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: customer1-odoo
namespace: internal
labels:
dedicated: network
annotations:
sirius.dev/purpose: bare-IP listener for the Customer 1 lab Odoo (WireGuard only)
spec:
gatewayClassName: cilium
listeners:
- name: http-internal
protocol: HTTP
# Verified free 2026-11-22: `ss -lntH "sport = :8086" | wc -l` = 0 on
# siriussec. Taken: 8080 public, 8081 Grafana, 8084 Hubble, 8085 Metabase.
port: 8086
allowedRoutes:
namespaces:
from: All