--- apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: pg-backup labels: app: postgresql spec: instances: 3 description: "PostgreSQL cluster with continuous backup to object store" postgresql: parameters: wal_level: replica max_wal_senders: 10 max_replication_slots: 10 archive_mode: on archive_command: "barman-cloud-archive '%p'" archive_timeout: 60000 storage: size: 50Gi storageClass: "standard" resources: requests: cpu: "500m" memory: "256Mi" limits: cpu: "2" memory: "1Gi" monitoring: enabled: true backup: target: "prefer-standby" barmanObjectStore: objectStore: name: pg-backup-store plugins: - name: barman-cloud.cloudnative-pg.io isWALArchiver: true parameters: barmanObjectName: pg-backup-store serverName: pg-backup