flux: re-order longhorn jobs for right dependencies

This commit is contained in:
2026-08-19 17:14:26 +02:00
parent bc6f92e145
commit 950ced8477
7 changed files with 53 additions and 3 deletions
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- recurring-jobs.yaml
@@ -0,0 +1,34 @@
# Recurring backup and snapshot schedules for Longhorn.
apiVersion: longhorn.io/v1beta2
kind: RecurringJob
metadata:
name: daily-snapshot
namespace: longhorn-system
spec:
# Fast local recovery from accidental deletes.
name: daily-snapshot
task: snapshot
cron: "0 2 * * *"
retain: 7
concurrency: 2
labels:
type: snapshot
groups:
- default
---
apiVersion: longhorn.io/v1beta2
kind: RecurringJob
metadata:
name: daily-backup
namespace: longhorn-system
spec:
# Daily NFS backup for DR if a node is lost.
name: daily-backup
task: backup
cron: "0 3 * * *"
retain: 7
concurrency: 2
labels:
type: backup
groups:
- default