feat: Replace custom pgdump job with CNPG ScheduledBackup
This commit is contained in:
11
infrastructure/addons/cnpg/scheduled-backup-rancher.yaml
Normal file
11
infrastructure/addons/cnpg/scheduled-backup-rancher.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: ScheduledBackup
|
||||
metadata:
|
||||
name: rancher-db-weekly
|
||||
namespace: cnpg-cluster
|
||||
spec:
|
||||
schedule: "0 0 2 * * 0"
|
||||
backupOwnerReference: self
|
||||
cluster:
|
||||
name: rancher-db
|
||||
target: primary
|
||||
Reference in New Issue
Block a user