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