apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: dawarich-db namespace: dawarich spec: instances: 3 imageName: git.halis.io/athens-school/cnpg-postgis:17-3.5 affinity: nodeSelector: kubernetes.io/arch: arm64 storage: size: 1Gi storageClass: local-path bootstrap: initdb: database: dawarich owner: dawarich secret: name: dawarich-db postInitTemplateSQL: - CREATE EXTENSION postgis; - CREATE EXTENSION postgis_topology; postgresql: pg_hba: - host all all all md5 backup: retentionPolicy: "30d" barmanObjectStore: destinationPath: "s3://halis/cloudnativepg" endpointURL: https://s3.halia.dev s3Credentials: accessKeyId: name: s3-secret key: AWS_ACCESS_KEY_ID secretAccessKey: name: s3-secret key: AWS_SECRET_ACCESS_KEY region: name: s3-secret key: AWS_REGION wal: compression: gzip maxParallel: 8 resources: requests: cpu: 100m memory: 100Mi limits: cpu: 500m memory: 500Mi monitoring: enablePodMonitor: true