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
This commit is contained in:
parent
bacb3f4faa
commit
3f96800222
9 changed files with 15 additions and 10 deletions
|
|
@ -6,7 +6,8 @@ resources:
|
|||
- waitlist-db-credentials.yaml
|
||||
- waitlist-db.yaml
|
||||
- siriusdevops-scheduled-backup.yaml
|
||||
# New trading dashboard DB
|
||||
# Trading dashboard DB
|
||||
- trading-dashboard-db-credentials.yaml
|
||||
|
||||
#- trading-dashboard-db.yaml
|
||||
# Trading platform DB (migrated from hermes-pgdb)
|
||||
- trading-db-credentials.yaml
|
||||
- trading-data-db.yaml
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@ spec:
|
|||
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:
|
||||
|
|
|
|||
10
apps/base/customer1/siriusdevops-db/trading-data-db.yaml
Normal file
10
apps/base/customer1/siriusdevops-db/trading-data-db.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Database
|
||||
metadata:
|
||||
name: trading-data-db
|
||||
namespace: customer1
|
||||
spec:
|
||||
cluster:
|
||||
name: siriusdevops-pgdb
|
||||
name: trading_data
|
||||
owner: trading
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: trading-db-credentials
|
||||
namespace: customer1
|
||||
type: Opaque
|
||||
stringData:
|
||||
username: ENC[AES256_GCM,data:M3gBIiP+uA==,iv:QhosCv8SfKcGMzy0Ja9+son5okXVtML5l9JUi/c2C9U=,tag:juYKzLFLsDGXSsgaF/BI3g==,type:str]
|
||||
password: ENC[AES256_GCM,data:9ajk/hBlnzkg2fi/zM0Rzx9MACyMKhtyv3lOERBcR4Y=,iv:voTjlgJVgO8yXirIgbAzg8MqmSxAdmmPPtPpeWYLqwA=,tag:RBBl4xD0NplMqp8y6oS8uw==,type:str]
|
||||
sops:
|
||||
age:
|
||||
- recipient: age1uuxf066xuuqgvjppxfcmqkwfcufnwp3wcwnl9h20g9k4l8nkw9jsaungf7
|
||||
enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBvZDg2amk0eVZSRUUvNkdO
|
||||
TTIySjB3QVpwMjlIcWE1dDBEeVBUSDlLbGpNCmVIL3hGeWY4TDJORGk0amZNU1dC
|
||||
czdwRFM3c2VTcVZUVXZoUUM0R0JNY2MKLS0tIHI3ODhRMjJ6NHhDSjBEbGx4QURj
|
||||
eVI0d1ZhNStZajU5K2lEVmhNalRrWDgKJStJ5MsUWBF1Ceq1uiTwxu8R8dzFz+SL
|
||||
MtFisTEwxgu5HoMpj3hxiDIMWi2pflp/iDwksK43BSw9lTHNYyQDWw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2026-05-02T22:14:04Z"
|
||||
mac: ENC[AES256_GCM,data:Tkg6KYjxddWMynrLZP26zjP+fp++WtMaPDf79CJie/Kps6PvFWHXDAXAhcS406xOEdj29IgBjrCGJp9PQK7nmI9UXw//p+s201jhG+hFCCG+estOmZyFJL0sHDZlAWx/993swwymDfTX564AfC7dj61MqdCQUz3BISSCjK4Tyd8=,iv:nC9LetZDlQ8SCiFf0MYi7og6qy76+tz7+7v6UM3PJrg=,tag:cWhU1egQAtVYwSZ9vbRi4Q==,type:str]
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
version: 3.12.2
|
||||
Loading…
Reference in a new issue