feat(customer1): add trading_dashboard database to siriusdevops-pgdb CNPG cluster

- Add trading_dashboard role + Database CR on siriusdevops-pgdb
- Create SOPS-encrypted credentials secret (template)
- Update trade-dashboard to use the new dedicated DB
  - New host: siriusdevops-pgdb-rw
  - New database: trading_dashboard
  - New credentials secret
This commit is contained in:
Hermes Agent 2026-05-24 20:02:20 +00:00
commit 57e41178c3
6 changed files with 48 additions and 5 deletions

View file

@ -6,3 +6,6 @@ resources:
- waitlist-db-credentials.yaml
- waitlist-db.yaml
- siriusdevops-scheduled-backup.yaml
# New trading dashboard DB
- trading-dashboard-db-credentials.yaml
- trading-dashboard-db.yaml

View file

@ -17,6 +17,12 @@ spec:
login: true
passwordSecret:
name: waitlist-db-credentials
# NEW - Trading Dashboard role
- name: trading_dashboard
ensure: present
login: true
passwordSecret:
name: trading-dashboard-db-credentials
bootstrap:
initdb:

View file

@ -0,0 +1,19 @@
apiVersion: v1
kind: Secret
metadata:
name: trading-dashboard-db-credentials
namespace: customer1
type: Opaque
stringData:
username: trading_dashboard
password: CHANGE_ME_TO_STRONG_PASSWORD
sops:
# Run `sops -e -i trading-dashboard-db-credentials.yaml` after filling in the password
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age: []
lastmodified: ""
mac: ""
encrypted_regex: ^(data|stringData)$

View file

@ -0,0 +1,10 @@
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
name: trading-dashboard-db
namespace: customer1
spec:
cluster:
name: siriusdevops-pgdb
name: trading_dashboard
owner: trading_dashboard