From 6a593fd559bfa339904146d96e3f79ce4d062eee Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sun, 29 Mar 2026 00:22:24 +0000 Subject: [PATCH] feat: Add B2 recovery bootstrap to CNPG cluster --- .../addons/cnpg/postgres-cluster.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/infrastructure/addons/cnpg/postgres-cluster.yaml b/infrastructure/addons/cnpg/postgres-cluster.yaml index 49b8e8f..8fc8100 100644 --- a/infrastructure/addons/cnpg/postgres-cluster.yaml +++ b/infrastructure/addons/cnpg/postgres-cluster.yaml @@ -31,6 +31,23 @@ spec: superuserSecret: name: rancher-db-password + bootstrap: + recovery: + source: b2-backup + + externalClusters: + - name: b2-backup + barmanObjectStore: + destinationPath: "s3://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 + monitoring: enablePodMonitor: false