1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-cthulhunetes-gitops-v2/manifests/postgres/postgres.yaml

47 lines
1.1 KiB
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgres
annotations:
argocd.argoproj.io/sync-wave: "10"
spec:
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
instances: 2
primaryUpdateStrategy: unsupervised
primaryUpdateMethod: switchover
superuserSecret:
name: postgres-superuser-credentials
storage:
storageClass: hcloud-volumes
size: 10Gi
resources:
limits:
cpu: "1"
memory: 2Gi
requests:
cpu: "1"
memory: 2Gi
# bootstrap:
# initdb:
# database: dataproxy
# owner: dataproxy
# secret:
# name: app-user-credentials
## Postgres configuration ##
# Enable 'postgres' superuser
enableSuperuserAccess: true
# Postgres instance parameters
postgresql:
parameters:
max_connections: "500"
max_slot_wal_keep_size: "1GB"
wal_keep_size: "1GB"
# High Availability configuration
minSyncReplicas: 0
maxSyncReplicas: 1
# Enable replication slots for HA in the cluster
replicationSlots:
highAvailability:
enabled: true
# monitoring:
# enablePodMonitor: true