feat(longhorn): Add backup/snapshot schedules
This commit is contained in:
parent
7084aa1257
commit
560b74653c
15
longhorn/daily-backup.yaml
Normal file
15
longhorn/daily-backup.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: longhorn.io/v1beta1
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: daily-backup
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 0 * * *"
|
||||
task: backup
|
||||
groups:
|
||||
- standard-pvc
|
||||
retain: 2
|
||||
concurrency: 2
|
||||
labels:
|
||||
recurrence: daily
|
||||
group: standard-pvc
|
15
longhorn/hourly-snapshot.yaml
Normal file
15
longhorn/hourly-snapshot.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: longhorn.io/v1beta1
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: hourly-snapshot
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 * * * *"
|
||||
task: snapshot
|
||||
groups:
|
||||
- standard-pvc
|
||||
retain: 10
|
||||
concurrency: 2
|
||||
labels:
|
||||
recurrence: hourly
|
||||
group: standard-pvc
|
@ -3,6 +3,9 @@ kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ingress.yaml
|
||||
- recurrent-backup.yaml
|
||||
- daily-backup.yaml
|
||||
- weekly-backup.yaml
|
||||
- monthly-backup.yaml
|
||||
- hourly-snapshot.yaml
|
||||
- secrets.yaml
|
||||
- servicemonitor.yaml
|
||||
|
15
longhorn/monthly-backup.yaml
Normal file
15
longhorn/monthly-backup.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: longhorn.io/v1beta1
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: monthly-backup
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 0 1 * *"
|
||||
task: backup
|
||||
groups:
|
||||
- standard-pvc
|
||||
retain: 2
|
||||
concurrency: 2
|
||||
labels:
|
||||
recurrence: monthly
|
||||
group: standard-pvc
|
15
longhorn/weekly-backup.yaml
Normal file
15
longhorn/weekly-backup.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: longhorn.io/v1beta1
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: weekly-backup
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 0 * * 0"
|
||||
task: backup
|
||||
groups:
|
||||
- standard-pvc
|
||||
retain: 2
|
||||
concurrency: 2
|
||||
labels:
|
||||
recurrence: weekly
|
||||
group: standard-pvc
|
Loading…
x
Reference in New Issue
Block a user