apps(farrisilk): lab replica stack (Odoo 18 + plain Postgres + Metabase) on :8086/:8087

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.
This commit is contained in:
Lance Walters 2026-11-22 02:15:56 -05:00
commit 7f7f806616
14 changed files with 874 additions and 6 deletions

View file

@ -1,6 +1,7 @@
#!/usr/sbin/nft -f
# Internal (WireGuard-only) gateway listeners: TCP 8081 (Grafana), 8084
# (Hubble UI) and 8085 (Metabase).
# (Hubble UI), 8085 (Metabase) and 8086/8087 (Farrisilk lab replica: Odoo,
# Metabase).
#
# Cilium's hostNetwork Envoy binds every Gateway listener on 0.0.0.0, so the
# internal listeners are open on the LAN interface the moment the Gateway is
@ -22,13 +23,13 @@ table inet internal_gw {
type filter hook input priority filter; policy accept;
# local process / kubelet probes
tcp dport { 8081, 8084, 8085 } iifname "lo" counter accept
tcp dport { 8081, 8084, 8085, 8086, 8087 } iifname "lo" counter accept
# WireGuard mesh (Legion = 10.10.0.3, nodes, remote hub spokes)
# and the pod network (in-cluster scrapers, probes)
tcp dport { 8081, 8084, 8085 } ip saddr { 10.10.0.0/24, 10.244.0.0/16 } counter accept
tcp dport { 8081, 8084, 8085, 8086, 8087 } ip saddr { 10.10.0.0/24, 10.244.0.0/16 } counter accept
# everything else: LAN, tailscale, public
tcp dport { 8081, 8084, 8085 } counter drop
tcp dport { 8081, 8084, 8085, 8086, 8087 } counter drop
}
}