homek8s/apps/base/metabase/cluster.yaml
Lance Walters 930752152e 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
2026-11-22 00:32:31 -05:00

38 lines
1.2 KiB
YAML

# Metabase's application database (its own metadata only: users, dashboards,
# questions, saved queries — never the data it queries).
#
# Same shape as every other CNPG cluster in this repo: one instance, local-path
# on siriussec, no superuser access. `bootstrap.initdb.secret` names the
# out-of-band Secret `metabase/pg-app` (kubernetes.io/basic-auth, username
# `metabase` — CNPG requires the secret's username to equal `owner`). The
# operator materialises `pg-app` with the same credentials for the Deployment.
#
# No barman ObjectStore yet: the other clusters get WAL archiving to Garage via
# the CNPG-I Barman Cloud plugin; this evaluation instance is deliberately left
# with no archive until Lance keeps it (follow-up card, not a silent gap).
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: pg
namespace: metabase
spec:
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:16
storage:
size: 5Gi
storageClass: local-path
affinity:
nodeSelector:
kubernetes.io/hostname: siriussec
bootstrap:
initdb:
database: metabase
owner: metabase
secret:
name: pg-app
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
memory: 1Gi