feat(backup): Add scheduled backup
This commit is contained in:
parent
4a4d918145
commit
677ac67e2c
10
manifests/grafana/database-backup.yaml
Normal file
10
manifests/grafana/database-backup.yaml
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user