# 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