apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: portal namespace: sirius-growth 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: portal owner: portal secret: name: sirius-growth-portal-db resources: requests: cpu: 100m memory: 256Mi limits: memory: 1Gi # Scraped via podmonitor.yaml in this directory (hand-written; see the comment # in apps/base/forgejo/podmonitor.yaml for why enablePodMonitor is false). # Only the operator's default query set here — this database needs no custom # application metrics. monitoring: enablePodMonitor: false disableDefaultQueries: false customQueriesConfigMap: - name: cnpg-default-monitoring key: queries