feat(backup): Add scheduled backup

This commit is contained in:
Tanguy Herbron 2024-12-05 22:25:45 +01:00
parent 4a4d918145
commit 677ac67e2c
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: grafana-db-backup
namespace: monitoring
spec:
schedule: "0 0 0 * * *"
backupOwnerReference: self
cluster:
name: grafana-db

View File

@ -7,5 +7,6 @@ resources:
- ingress.yaml - ingress.yaml
- servicemonitor.yaml - servicemonitor.yaml
- database.yaml - database.yaml
- database-backup.yaml
- datasources.yaml - datasources.yaml
- deployment.yaml - deployment.yaml