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

@ -4,7 +4,6 @@ metadata:
name: trade-dashboard-config
namespace: customer1
data:
DB_USER: "trading"
DB_HOST: "hermes-pgdb-rw.customer1.svc.cluster.local"
DB_HOST: "siriusdevops-pgdb-rw.customer1.svc.cluster.local"
DB_PORT: "5432"
DB_NAME: "trading_data"
DB_NAME: "trading_dashboard"

View file

@ -41,12 +41,12 @@ spec:
- name: DB_USER
valueFrom:
secretKeyRef:
name: trading-db-credentials
name: trading-dashboard-db-credentials
key: username
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: trading-db-credentials
name: trading-dashboard-db-credentials
key: password
startupProbe:
httpGet:
@ -61,3 +61,9 @@ spec:
port: 8000
initialDelaySeconds: 30
periodSeconds: 30
readinessProbe:
httpGet:
path: /api/health
port: 8000
initialDelaySeconds: 5
periodSeconds: 10