From 07107aac4f40c1cadcc674d6acdf640e334b70d9 Mon Sep 17 00:00:00 2001 From: Grant <5445379+grantdhunter@users.noreply.github.com> Date: Sat, 22 Mar 2025 22:41:28 -0600 Subject: [PATCH] Add s3 to pgo backups --- helmfile.yaml | 7 +++++++ postgres/values.yaml | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/helmfile.yaml b/helmfile.yaml index a90fff4..63b0ae6 100644 --- a/helmfile.yaml +++ b/helmfile.yaml @@ -83,6 +83,13 @@ releases: chart: crunchydata/postgrescluster values: - postgres/values.yaml + setString: + - name: multiBackupRepos[1].s3.key + value: {{ requiredEnv "HETZNER_S3_ACCESS_KEY" }} + - name: multiBackupRepos[1].s3.keySecret + value: {{ requiredEnv "HETZNER_S3_ACCESS_SECRET" }} + - name: multiBackupRepos[1].s3.encryptionPassphrase + value: {{ requiredEnv "PG_BACKREST_PASSWORD" }} - name: mariadb namespace: datastore createNamespace: true diff --git a/postgres/values.yaml b/postgres/values.yaml index 5d43334..31c7fae 100644 --- a/postgres/values.yaml +++ b/postgres/values.yaml @@ -1,5 +1,4 @@ instanceSize: 10Gi -backupsSize: 10Gi patroni: dynamicConfiguration: @@ -28,4 +27,10 @@ users: - immich options: "LOGIN" - +multiBackupRepos: + - volume: + backupsSize: 10Gi + - s3: + bucket: fog + endpoint: hel1.your-objectstorage.com + region: hel1