apps(metabase): deploy Metabase (WireGuard-only :8085) with CNPG app DB
- apps/base/metabase: namespace, CNPG Cluster pg (5Gi local-path, siriussec), Metabase Deployment v0.65.6.3 (1.5G heap, no PVC), Service, hostname-less HTTPRoute on the dedicated metabase Gateway - infrastructure/networking/internal: new Gateway metabase on port 8085 (own RouteConfiguration, so it cannot merge with Grafana's bare route) - host firewall: 8085 in siriussec nft set + rpi ufw guard
This commit is contained in:
parent
a0fc373e34
commit
930752152e
13 changed files with 225 additions and 14 deletions
|
|
@ -6,14 +6,15 @@
|
|||
# Final order per port: allow 10.10.0.0/24, allow 10.244.0.0/16, deny the rest.
|
||||
#
|
||||
# Ports: 8081 = Grafana (`internal` Gateway listener http-internal),
|
||||
# 8084 = Hubble UI (`internal` Gateway listener hubble-ui).
|
||||
# 8084 = Hubble UI (`internal` Gateway listener hubble-ui),
|
||||
# 8085 = Metabase (`metabase` Gateway listener http-internal).
|
||||
# Add a new internal listener port to PORTS; the loop is idempotent, so
|
||||
# re-running after a port is already firewalled only adds what is missing.
|
||||
#
|
||||
# Run as root on rpi (192.168.1.125).
|
||||
set -euo pipefail
|
||||
|
||||
PORTS="${PORTS:-8081 8084}"
|
||||
PORTS="${PORTS:-8081 8084 8085}"
|
||||
|
||||
for port in $PORTS; do
|
||||
if ufw status | grep -q "${port}/tcp"; then
|
||||
|
|
@ -28,4 +29,4 @@ for port in $PORTS; do
|
|||
|
||||
echo "$port rules installed:"
|
||||
ufw status | grep "${port}/tcp" || true
|
||||
done
|
||||
done
|
||||
Loading…
Reference in a new issue