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

40 lines
931 B
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: 1
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: "10GB"
# wal_keep_size: "5GB"
# monitoring:
# enablePodMonitor: true