From 1a8324e4923965a23af3957d4a6105979130aa9a Mon Sep 17 00:00:00 2001 From: Marco van Zijl Date: Sun, 11 May 2025 09:55:49 +0200 Subject: [PATCH] Add ScheduledBackup configuration for PostgreSQL in authentik --- applications/templates/authentik.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/applications/templates/authentik.yaml b/applications/templates/authentik.yaml index 96db344..29768af 100644 --- a/applications/templates/authentik.yaml +++ b/applications/templates/authentik.yaml @@ -68,7 +68,6 @@ spec: rules: enabled: true --- - apiVersion: objectbucket.io/v1alpha1 kind: ObjectBucketClaim metadata: @@ -125,4 +124,21 @@ spec: compression: bzip2 wal: compression: bzip2 - retentionPolicy: "60d" \ No newline at end of file + retentionPolicy: "60d" +--- +apiVersion: postgresql.cnpg.io/v1 +kind: ScheduledBackup +metadata: + name: backup-pg-authentik + namespace: authentik +spec: + schedule: "0 0 0 * * *" + method: barmanObjectStore + immediate: true + backupOwnerReference: self + cluster: + name: pg-authentik-cluster + + + + \ No newline at end of file