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
38
apps/base/metabase/cluster.yaml
Normal file
38
apps/base/metabase/cluster.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# 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
|
||||
Loading…
Reference in a new issue