feat: add backup infrastructure (CronJobs, PVC, Longhorn RecurringJobs) #116
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: RecurringJob
|
||||||
|
metadata:
|
||||||
|
name: daily-snapshot
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
cron: "0 1 * * *"
|
||||||
|
task: snapshot
|
||||||
|
retain: 7
|
||||||
|
concurrency: 2
|
||||||
|
labels:
|
||||||
|
backup-tier: daily
|
||||||
|
---
|
||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: RecurringJob
|
||||||
|
metadata:
|
||||||
|
name: weekly-backup
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
cron: "0 3 * * 0"
|
||||||
|
task: backup
|
||||||
|
retain: 4
|
||||||
|
concurrency: 1
|
||||||
|
labels:
|
||||||
|
backup-tier: weekly
|
||||||
Reference in New Issue
Block a user