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