This commit is contained in:
2024-04-09 14:42:10 +02:00
parent 737820335d
commit 3a64351eee
4 changed files with 8 additions and 16 deletions

View File

@@ -28,13 +28,9 @@ resource "kubectl_manifest" "prj_pg" {
enablePodMonitor: true
inheritedMetadata:
annotations:
"k8up.io/backup": "false"
template:
metadata:
annotations:
"k8up.io/backupcommand": "pg_dump -U postgres -d ${var.component} --clean"
"k8up.io/file-extension": ".sql"
"k8up.io/backup": "true"
"k8up.io/backupcommand": "pg_dump -U postgres -d ${var.component} --clean"
"k8up.io/file-extension": ".sql"
"k8up.io/backup": "true"
EOF
], var.backups.enable&&var.backups.use_barman?[<<-EOF
backup: