Odoo 18 (dated tag 18.0-20261112) on a plain postgres:16 container, not CNPG: the client runs bare Postgres on a Proxmox VM and this namespace mirrors that shape. Odoo's initContainer installs base,web once, applies the read-only BI grants/revokes and sets the admin login from a Secret. Metabase gets its own state in the same Postgres (db metabase) with a 1Gi heap and MB_ENCRYPTION_SECRET_KEY. Two bare-IP Gateways (8086 odoo, 8087 metabase) in ns internal, each with its own RouteConfiguration. Host firewall (nft on siriussec, ufw on rpi) carries 8086/8087 and was installed before the Gateways were pushed.
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
# 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
|
|
# of listener port. Hence gateway-farrisilk-odoo.yaml (8086) and
|
|
# gateway-farrisilk-metabase.yaml (8087) in infrastructure/networking/internal/.
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: odoo
|
|
namespace: farrisilk
|
|
spec:
|
|
parentRefs:
|
|
- name: farrisilk-odoo
|
|
namespace: internal
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: odoo
|
|
port: 8069
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: metabase
|
|
namespace: farrisilk
|
|
spec:
|
|
parentRefs:
|
|
- name: farrisilk-metabase
|
|
namespace: internal
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: metabase
|
|
port: 3000
|