# The WAL archive for Cluster sirius-growth/portal, in the CNPG-I Barman Cloud # plugin's own CR instead of Cluster.spec.backup.barmanObjectStore. # # Same store, same layout: destinationPath is the *bucket root* and the plugin # appends the server name (Cluster.spec.plugins[].parameters.serverName, set to # `portal`), so the existing objects stay exactly where the in-tree archiver put # them — s3://pg-wal-archive/portal/{base,wals}/... . Anything that changes the # prefix silently abandons the 14-day window that is already in the bucket. # # `spec.configuration` is the literal translation of the retired # `spec.backup.barmanObjectStore` block (same schema, same Secret), and # `retentionPolicy` moved here from Cluster.spec.backup.retentionPolicy — in the # plugin architecture retention is a property of the store, not the cluster. # # Credentials: Secret sirius-growth/portal-wal-s3 (Garage key `cnpg-portal-wal`, # id GK7f2b4bb1fc9abaec50fde37b, RW on bucket `pg-wal-archive` only), created # out of band. The key values are deliberately not in git. apiVersion: barmancloud.cnpg.io/v1 kind: ObjectStore metadata: name: portal-wal namespace: sirius-growth spec: configuration: destinationPath: s3://pg-wal-archive endpointURL: http://10.10.0.5:3900 s3Credentials: accessKeyId: name: portal-wal-s3 key: ACCESS_KEY_ID secretAccessKey: name: portal-wal-s3 key: ACCESS_SECRET_KEY region: name: portal-wal-s3 key: REGION # gzip on both directions: this is a WAL stream over the WireGuard mesh into # a 20 GB store on the Linode, so bytes on the wire and in the bucket are # the cost. Must match what the in-tree archiver wrote (gzip) — the # archive is read by segment, but a mismatch in base-backup compression # would make the existing base backups unrestorable. wal: compression: gzip maxParallel: 2 data: compression: gzip jobs: 2 # Enforced by the plugin instance sidecar every 30 min (default # retentionPolicyIntervalSeconds) with barman-cloud's retention logic, i.e. # the same 14-day window the in-tree archiver maintained. retentionPolicy: "14d"