From dbe213da6a14531a8df06a7b1591be4c946b124f Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 14 Aug 2024 20:05:16 +0200 Subject: [PATCH] feat(cnpg): configure backup --- cnpg/kustomization.yaml | 1 + cnpg/resources/backup.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 cnpg/resources/backup.yaml diff --git a/cnpg/kustomization.yaml b/cnpg/kustomization.yaml index cedc149..833f4d6 100644 --- a/cnpg/kustomization.yaml +++ b/cnpg/kustomization.yaml @@ -6,6 +6,7 @@ resources: - resources/secrets/ext-pgo-admin.yaml - resources/secrets/cnpg-backup-creds.yaml - resources/cluster.yaml + - resources/backup.yaml helmCharts: - releaseName: cnpg diff --git a/cnpg/resources/backup.yaml b/cnpg/resources/backup.yaml new file mode 100644 index 0000000..46175a9 --- /dev/null +++ b/cnpg/resources/backup.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: postgresql.cnpg.io/v1 +kind: ScheduledBackup +metadata: + name: daily-backup +spec: + schedule: "0 1 * * *" + backupOwnerReference: self + cluster: + name: app-cluster \ No newline at end of file