2026-11-22 02:15:56 -05:00
|
|
|
# Two separate HTTPRoutes and two separate Gateways, on purpose.
|
|
|
|
|
#
|
|
|
|
|
# A hostname-less route answers on the bare WireGuard address
|
|
|
|
|
# (http://10.10.0.2:8086/ and :8087/) for ANY Host header, because a phone
|
|
|
|
|
# cannot edit /etc/hosts. Cilium renders ONE RouteConfiguration per Gateway and
|
|
|
|
|
# merges every hostname-less route in it into a single weighted route, so two
|
|
|
|
|
# services sharing one Gateway serve each other's traffic at random regardless
|
2026-11-24 01:46:25 -05:00
|
|
|
# of listener port. Hence gateway-customer1-odoo.yaml (8086) and
|
|
|
|
|
# gateway-customer1-metabase.yaml (8087) in infrastructure/networking/internal/.
|
2026-11-22 02:15:56 -05:00
|
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
|
|
|
kind: HTTPRoute
|
|
|
|
|
metadata:
|
|
|
|
|
name: odoo
|
2026-11-24 01:46:25 -05:00
|
|
|
namespace: customer1
|
2026-11-22 02:15:56 -05:00
|
|
|
spec:
|
|
|
|
|
parentRefs:
|
2026-11-24 01:46:25 -05:00
|
|
|
- name: customer1-odoo
|
2026-11-22 02:15:56 -05:00
|
|
|
namespace: internal
|
|
|
|
|
rules:
|
|
|
|
|
- matches:
|
|
|
|
|
- path:
|
|
|
|
|
type: PathPrefix
|
|
|
|
|
value: /
|
|
|
|
|
backendRefs:
|
|
|
|
|
- name: odoo
|
|
|
|
|
port: 8069
|
|
|
|
|
---
|
|
|
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
|
|
|
kind: HTTPRoute
|
|
|
|
|
metadata:
|
|
|
|
|
name: metabase
|
2026-11-24 01:46:25 -05:00
|
|
|
namespace: customer1
|
2026-11-22 02:15:56 -05:00
|
|
|
spec:
|
|
|
|
|
parentRefs:
|
2026-11-24 01:46:25 -05:00
|
|
|
- name: customer1-metabase
|
2026-11-22 02:15:56 -05:00
|
|
|
namespace: internal
|
|
|
|
|
rules:
|
|
|
|
|
- matches:
|
|
|
|
|
- path:
|
|
|
|
|
type: PathPrefix
|
|
|
|
|
value: /
|
|
|
|
|
backendRefs:
|
|
|
|
|
- name: metabase
|
|
|
|
|
port: 3000
|