gcloud-lab/apps/base/customer1/siriusdevops-db/pg-cluster-siriusdevops.yaml
Hermes Agent 3f96800222 feat: migrate all trading-platform services from hermes-pgdb to siriusdevops-pgdb
- Add 'trading' managed role to siriusdevops-pgdb cluster
- Move trading-db-credentials from hermes-db to siriusdevops-db
- Create trading-data-db.yaml (Database kind) pointing to siriusdevops-pgdb
- Update DB_HOST in all 4 trading-platform configmaps to siriusdevops-pgdb-rw
- Remove trading-data-db.yaml and trading-db-credentials.yaml from hermes-db
- Update siriusdevops-db kustomization.yaml to include new resources
2026-05-25 07:55:15 +00:00

57 lines
1.3 KiB
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: siriusdevops-pgdb
namespace: customer1
spec:
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:15.2
storage:
size: 20Gi
managed:
roles:
- name: waitlist
ensure: present
login: true
passwordSecret:
name: waitlist-db-credentials
# NEW - Trading Dashboard role
- name: trading_dashboard
ensure: present
login: true
passwordSecret:
name: trading-dashboard-db-credentials
# Trading platform role (migrated from hermes-pgdb)
- name: trading
ensure: present
login: true
passwordSecret:
name: trading-db-credentials
bootstrap:
initdb:
database: waitlist
owner: waitlist
secret:
name: waitlist-db-credentials
serviceAccountTemplate:
metadata:
name: cnpg-backup-sa
annotations:
iam.gke.io/gcp-service-account: cnpg-backup-sa@devops-lab-cluster.iam.gserviceaccount.com
backup:
barmanObjectStore:
destinationPath: "gs://customer1_db_backup/siriusdevops-backups/"
googleCredentials:
gkeEnvironment: true
wal:
compression: gzip
data:
compression: gzip
jobs: 2
retentionPolicy: "30d"
target: primary