fix: Postgres | add internal routes for gitea

This commit is contained in:
2024-09-01 15:29:07 +05:00
parent 38d091ad59
commit 33c151cce5

View File

@@ -1,3 +1,4 @@
---
apiVersion: postgresql.cnpg.io/v1 apiVersion: postgresql.cnpg.io/v1
kind: Cluster kind: Cluster
metadata: metadata:
@@ -6,22 +7,26 @@ metadata:
spec: spec:
instances: 3 instances: 3
minSyncReplicas: 1 minSyncReplicas: 1
maxSyncReplicas: 2 maxSyncReplicas: 1
primaryUpdateStrategy: unsupervised primaryUpdateStrategy: unsupervised
certificates:
serverAltDNSNames:
- postgres.home
postgresql: postgresql:
pg_hba: pg_hba:
- host all all all md5 - hostssl all all all cert
- hostssl giteadb gitea 10.42.0.0/16 md5
enableSuperuserAccess: true enableSuperuserAccess: true
superuserSecret: superuserSecret:
name: postgres-password name: postgres-password
bootstrap: bootstrap:
initdb: initdb:
database: postgres database: postgres
secret: secret:
name: postgres-password name: postgres-password
postInitSQL:
- 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
- 'CREATE USER shahab SUPERUSER CREATEROLE;'
- 'CREATE DATABASE giteadb;'
storage: storage:
size: 1Gi size: 1Gi