cloudnative-pg migration

This commit is contained in:
auricom
2024-01-28 16:58:51 +01:00
parent 6d620d9b51
commit e7fe440f36
34 changed files with 84 additions and 106 deletions

View File

@@ -15,9 +15,9 @@ spec:
data:
# App
DB_ENGINE: django.db.backends.postgresql_psycopg2
DB_OPTIONS: '{"sslmode":"require"}'
# DB_OPTIONS: '{"sslmode":"require"}'
SECRET_KEY: "{{ .TANDOOR_SECRET_KEY }}"
POSTGRES_HOST: &dbHost postgres.${SECRET_DOMAIN}
POSTGRES_HOST: &dbHost postgres16-rw.database.svc.cluster.local
POSTGRES_PORT: "5432"
POSTGRES_DB: &dbName tandoor
POSTGRES_USER: &dbUser "{{ .TANDOOR_POSTGRES_USER }}"
@@ -30,6 +30,6 @@ spec:
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:
key: generic
key: cloudnative-pg
- extract:
key: tandoor