Skip to content

Commit

Permalink
feat(longorn): add volume cleanup routine
Browse files Browse the repository at this point in the history
  • Loading branch information
cterence committed Jan 12, 2025
1 parent 6068f65 commit 47a2f7a
Showing 1 changed file with 46 additions and 23 deletions.
69 changes: 46 additions & 23 deletions k8s-apps/longhorn/templates/recurring-jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
# apiVersion: longhorn.io/v1beta1
# kind: RecurringJob
# metadata:
# name: snapshots
# spec:
# cron: "0 4 * * *"
# task: "snapshot"
# groups:
# - default
# retain: 7
# concurrency: 3
# ---
# apiVersion: longhorn.io/v1beta1
# kind: RecurringJob
# metadata:
# name: backups
# spec:
# cron: "0 6 * * *"
# task: "backup"
# groups:
# - default
# retain: 30
# concurrency: 3
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
name: 0-snapshot
spec:
cron: "0 4 * * *"
task: "snapshot"
groups:
- default
retain: 0
concurrency: 10
---
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
name: 1-snapshot-delete
spec:
cron: "15 4 * * *"
task: "snapshot-delete"
groups:
- default
retain: 0
concurrency: 10
---
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
name: 2-snapshot-cleanup
spec:
cron: "30 4 * * *"
task: "snapshot-cleanup"
groups:
- default
retain: 0
concurrency: 10
---
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
name: 3-filesystem-trim
spec:
cron: "45 4 * * *"
task: "filesystem-trim"
groups:
- default
concurrency: 10

0 comments on commit 47a2f7a

Please sign in to comment.