From 4e1772c1750c713f9b06e7d1cfe627fa4436ed0c Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Thu, 26 Mar 2026 22:47:31 +0000 Subject: [PATCH] feat: Add B2 backup configuration to CNP Cluster --- .../addons/cnpg/postgres-cluster.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/infrastructure/addons/cnpg/postgres-cluster.yaml b/infrastructure/addons/cnpg/postgres-cluster.yaml index 6418ce0..3a2a98c 100644 --- a/infrastructure/addons/cnpg/postgres-cluster.yaml +++ b/infrastructure/addons/cnpg/postgres-cluster.yaml @@ -40,4 +40,21 @@ spec: tolerations: - key: node-role.kubernetes.io/control-plane operator: Exists - effect: NoSchedule \ No newline at end of file + effect: NoSchedule + + backup: + barmanObjectStore: + destinationPath: "s3://s3.us-east-005.backblazeb2.com/HetznerTerra/rancher-backups/" + endpointURL: "https://s3.us-east-005.backblazeb2.com" + s3Credentials: + accessKeyId: + name: b2-credentials + key: B2_ACCOUNT_ID + secretAccessKey: + name: b2-credentials + key: B2_APPLICATION_KEY + wal: + compression: lzop + data: + compression: lzop + encryption: AES256 \ No newline at end of file