apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: stellaops-pg-prod namespace: platform-postgres spec: instances: 3 imageName: ghcr.io/cloudnative-pg/postgresql:16.4 primaryUpdateStrategy: unsupervised storage: size: 500Gi storageClass: fast-ssd walStorage: size: 128Gi storageClass: fast-wal superuserSecret: name: stellaops-pg-superuser bootstrap: initdb: database: stellaops owner: stellaops_app secret: name: stellaops-pg-app monitoring: enablePodMonitor: true postgresql: parameters: max_connections: "900" shared_buffers: "4096MB" work_mem: "96MB" maintenance_work_mem: "768MB" wal_level: "replica" max_wal_size: "4GB" timezone: "UTC" log_min_duration_statement: "250" statement_timeout: "30000" resources: requests: cpu: "4" memory: "16Gi" limits: cpu: "8" memory: "24Gi" backup: barmanObjectStore: destinationPath: s3://stellaops-backups/production s3Credentials: accessKeyId: name: stellaops-pg-backup key: ACCESS_KEY_ID secretAccessKey: name: stellaops-pg-backup key: SECRET_ACCESS_KEY wal: compression: gzip maxParallel: 4 logLevel: info