infra/k8s/operators/longhorn/longhorn-storageclass-patches.yaml

33 lines
805 B
YAML
Raw Normal View History

2024-07-26 22:28:25 +00:00
- op: replace
path: /data/storageclass.yaml
value: |
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: driver.longhorn.io
allowVolumeExpansion: true
reclaimPolicy: "Delete"
volumeBindingMode: Immediate
parameters:
numberOfReplicas: "1"
staleReplicaTimeout: "2880" # 48 hours in minutes
fromBackup: ""
recurringJobs: |
[
{
2024-07-27 04:50:19 +00:00
"name": "snap",
"task": "snapshot",
"cron": "0 * * * *",
"retain": 24
2024-07-26 22:28:25 +00:00
},
{
2024-07-27 04:50:19 +00:00
"name": "backup",
"task": "backup",
"cron": "0 0 * * *",
"retain": 7,
2024-07-26 22:28:25 +00:00
}
]