fix: Postgres | use async replicas only and add dogar.dev to certificate sans

This commit is contained in:
2024-10-01 09:10:50 +05:00
parent d4edcc0645
commit 18605f98a1

View File

@@ -6,12 +6,13 @@ metadata:
namespace: postgres-system namespace: postgres-system
spec: spec:
instances: 3 instances: 3
minSyncReplicas: 1 minSyncReplicas: 0
maxSyncReplicas: 1 maxSyncReplicas: 0
primaryUpdateStrategy: unsupervised primaryUpdateStrategy: unsupervised
certificates: certificates:
serverAltDNSNames: serverAltDNSNames:
- postgres.home - postgres.home
- dogar.dev
- localhost - localhost
postgresql: postgresql:
pg_hba: pg_hba:
@@ -26,7 +27,6 @@ spec:
secret: secret:
name: postgres-password name: postgres-password
postInitSQL: postInitSQL:
- 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
- 'CREATE USER shahab SUPERUSER;' - 'CREATE USER shahab SUPERUSER;'
- 'CREATE USER dogar SUPERUSER;' - 'CREATE USER dogar SUPERUSER;'
- 'CREATE USER leviathan;' - 'CREATE USER leviathan;'