feat: add PostgreSQL production cluster GitOps configuration

This commit is contained in:
2026-09-04 13:17:50 +02:00
parent c5fc62b325
commit 7ea8c50d83
4 changed files with 311 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgresql-prod
spec:
instances: 3
imageName: ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie
storage:
storageClass: longhorn
size: 2Gi
resources:
requests:
cpu: "500m"
memory: "1Gi"
limits:
cpu: "2"
memory: "4Gi"
bootstrap:
initdb:
database: radius
owner: radius
postInitApplicationSQLRefs:
configMapRefs:
- name: postgresql-init
key: init.sql