35 lines
868 B
YAML
35 lines
868 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":"*/1 * * * *",
|
|
"retain":1
|
|
},
|
|
{
|
|
"name":"backup",
|
|
"task":"backup",
|
|
"cron":"*/2 * * * *",
|
|
"retain":1,
|
|
"labels": {
|
|
"interval":"2m"
|
|
}
|
|
}
|
|
]
|