Failed backups cleanup: update deploy YAML
Add a new option `failed-backup-ttl` and update the LEP for failed backup cleanup. Longhorn 3898 Signed-off-by: James Lu <james.lu@suse.com>
This commit is contained in:
parent
20ba35f9a2
commit
8759703a8b
@ -330,6 +330,16 @@ The available volume spec options are:
|
|||||||
type: int
|
type: int
|
||||||
min: 0
|
min: 0
|
||||||
default: 300
|
default: 300
|
||||||
|
- variable: defaultSettings.failedBackupTTL
|
||||||
|
label: Failed Backup Time to Live
|
||||||
|
description: "In minutes. This setting determines how long Longhorn will keep the backup resource that was failed. Set to 0 to disable the auto-deletion.
|
||||||
|
Failed backups will be checked and cleaned up during backupstore polling which is controlled by **Backupstore Poll Interval** setting.
|
||||||
|
Hence this value determines the minimal wait interval of the cleanup. And the actual cleanup interval is multiple of **Backupstore Poll Interval**.
|
||||||
|
Disabling **Backupstore Poll Interval** also means to disable failed backup auto-deletion."
|
||||||
|
group: "Longhorn Default Settings"
|
||||||
|
type: int
|
||||||
|
min: 0
|
||||||
|
default: 1440
|
||||||
- variable: defaultSettings.autoSalvage
|
- variable: defaultSettings.autoSalvage
|
||||||
label: Automatic salvage
|
label: Automatic salvage
|
||||||
description: "If enabled, volumes will be automatically salvaged when all the replicas become faulty e.g. due to network disconnection. Longhorn will try to figure out which replica(s) are usable, then use them for the volume. By default true."
|
description: "If enabled, volumes will be automatically salvaged when all the replicas become faulty e.g. due to network disconnection. Longhorn will try to figure out which replica(s) are usable, then use them for the volume. By default true."
|
||||||
|
@ -20,6 +20,7 @@ data:
|
|||||||
{{ if not (kindIs "invalid" .Values.defaultSettings.defaultDataLocality) }}default-data-locality: {{ .Values.defaultSettings.defaultDataLocality }}{{ end }}
|
{{ if not (kindIs "invalid" .Values.defaultSettings.defaultDataLocality) }}default-data-locality: {{ .Values.defaultSettings.defaultDataLocality }}{{ end }}
|
||||||
{{ if not (kindIs "invalid" .Values.defaultSettings.defaultLonghornStaticStorageClass) }}default-longhorn-static-storage-class: {{ .Values.defaultSettings.defaultLonghornStaticStorageClass }}{{ end }}
|
{{ if not (kindIs "invalid" .Values.defaultSettings.defaultLonghornStaticStorageClass) }}default-longhorn-static-storage-class: {{ .Values.defaultSettings.defaultLonghornStaticStorageClass }}{{ end }}
|
||||||
{{ if not (kindIs "invalid" .Values.defaultSettings.backupstorePollInterval) }}backupstore-poll-interval: {{ .Values.defaultSettings.backupstorePollInterval }}{{ end }}
|
{{ if not (kindIs "invalid" .Values.defaultSettings.backupstorePollInterval) }}backupstore-poll-interval: {{ .Values.defaultSettings.backupstorePollInterval }}{{ end }}
|
||||||
|
{{ if not (kindIs "invalid" .Values.defaultSettings.failedBackupTTL) }}failed-backup-ttl: {{ .Values.defaultSettings.failedBackupTTL }}{{ end }}
|
||||||
{{- if or (not (kindIs "invalid" .Values.defaultSettings.taintToleration)) (.Values.global.cattle.windowsCluster.enabled) }}
|
{{- if or (not (kindIs "invalid" .Values.defaultSettings.taintToleration)) (.Values.global.cattle.windowsCluster.enabled) }}
|
||||||
taint-toleration: {{ $windowsDefaultSettingTaintToleration := list }}{{ $defaultSettingTaintToleration := list -}}
|
taint-toleration: {{ $windowsDefaultSettingTaintToleration := list }}{{ $defaultSettingTaintToleration := list -}}
|
||||||
{{- if and .Values.global.cattle.windowsCluster.enabled .Values.global.cattle.windowsCluster.defaultSetting.taintToleration -}}
|
{{- if and .Values.global.cattle.windowsCluster.enabled .Values.global.cattle.windowsCluster.defaultSetting.taintToleration -}}
|
||||||
|
@ -108,6 +108,7 @@ defaultSettings:
|
|||||||
defaultReplicaCount: ~
|
defaultReplicaCount: ~
|
||||||
defaultLonghornStaticStorageClass: ~
|
defaultLonghornStaticStorageClass: ~
|
||||||
backupstorePollInterval: ~
|
backupstorePollInterval: ~
|
||||||
|
failedBackupTTL: ~
|
||||||
taintToleration: ~
|
taintToleration: ~
|
||||||
systemManagedComponentsNodeSelector: ~
|
systemManagedComponentsNodeSelector: ~
|
||||||
priorityClass: ~
|
priorityClass: ~
|
||||||
|
Loading…
Reference in New Issue
Block a user