Files
kube/clusters/base/infra/longhorn/recurring-jobs/recurringjob-backup.yaml
T

22 lines
666 B
YAML

apiVersion: longhorn.io/v1beta2
kind: RecurringJob
metadata:
name: backup
namespace: longhorn-system
spec:
task: "backup"
cron: "0 3 * * *"
retain: 7
concurrency: 2
# "default" is a special group name: Longhorn auto-applies it to every
# volume that has NO recurring-job label at all - i.e. opt-out. To
# exclude a specific volume, give it any other (job-less) group label,
# e.g.:
# recurring-job-group.longhorn.io/no-backup: enabled
# (having *any* recurring-job label disqualifies it from "default" -
# there's no dedicated "disabled" flag, this placeholder-group is the
# documented workaround)
groups:
- default
labels: {}