enable longhorn
This commit is contained in:
13
helm/longhorn/dev/templates/snapshot-4h.yaml
Normal file
13
helm/longhorn/dev/templates/snapshot-4h.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: longhorn.io/v1beta2
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: snapshot-4h
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
cron: "0 */4 * * *" # Toutes les 4 heures
|
||||
task: "snapshot"
|
||||
groups:
|
||||
- "group-snapshot" # Optionnel : permet de regrouper les jobs
|
||||
retain: 24 # Conserver 24 snapshots (6 jours avec 4 snapshots/jour)
|
||||
concurrency: 2
|
||||
|
||||
Reference in New Issue
Block a user