infra/k8s/operators/longhorn/longhorn-storageclass-patches.yaml
2024-07-26 21:50:19 -07:00

32 lines
805 B
YAML

- 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: |
[
{
"name": "snap",
"task": "snapshot",
"cron": "0 * * * *",
"retain": 24
},
{
"name": "backup",
"task": "backup",
"cron": "0 0 * * *",
"retain": 7,
}
]