From 33e0f9676466b78e49de9ebd2f249dbce63b6621 Mon Sep 17 00:00:00 2001 From: Marco van Zijl Date: Sat, 10 May 2025 11:31:04 +0200 Subject: [PATCH] Add backup configuration for CloudNativePG with Ceph integration --- applications/templates/cloudnativepg.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/applications/templates/cloudnativepg.yaml b/applications/templates/cloudnativepg.yaml index ac110c3..4fa3a64 100644 --- a/applications/templates/cloudnativepg.yaml +++ b/applications/templates/cloudnativepg.yaml @@ -68,6 +68,23 @@ spec: storage: size: 50Gi storageClass: local-path + backup: + enabled: true + barmanObjectStore: + endpointURL: http://rook-ceph-rgw-rgw-bulk.ceph.svc:80 + destinationPath: "s3://backup-cnpg/" + s3Credentials: + accessKeyId: + name: postgrs-backup-bucket + key: ACCESS_KEY_ID + secretAccessKey: + name: postgres-backup-bucket + key: ACCESS_SECRET_KEY + data: + compression: bzip2 + wal: + compression: bzip2 + retentionPolicy: "60d" --- apiVersion: objectbucket.io/v1alpha1 kind: ObjectBucketClaim