From 362d50652d3bbffb5784580a2f4b36f340198111 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 15 Aug 2023 14:14:32 +0000 Subject: [PATCH] Restore. --- .../database/cloudnative-pg/cluster/cluster.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kubernetes/apps/database/cloudnative-pg/cluster/cluster.yaml b/kubernetes/apps/database/cloudnative-pg/cluster/cluster.yaml index 462df2d..cf30b49 100644 --- a/kubernetes/apps/database/cloudnative-pg/cluster/cluster.yaml +++ b/kubernetes/apps/database/cloudnative-pg/cluster/cluster.yaml @@ -25,6 +25,8 @@ spec: monitoring: enablePodMonitor: true backup: + recovery: + source: clusterBackup retentionPolicy: 30d barmanObjectStore: wal: @@ -40,3 +42,17 @@ spec: secretAccessKey: name: cloudnative-pg-secret key: aws-secret-access-key + externalClusters: + - name: clusterBackup + barmanObjectStore: + destinationPath: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com + s3Credentials: + accessKeyId: + name: cloudnative-pg-secret + key: aws-access-key-id + secretAccessKey: + name: cloudnative-pg-secret + key: aws-secret-access-key + wal: + maxParallel: 8 + compression: bzip2