Files
kube/clusters/base/infra/longhorn/storage-classes/longhorn.yaml
T

28 lines
1.0 KiB
YAML

# Default Longhorn class. Managed here instead of by the chart (persistence.createStorageClass: false
# in the HelmRelease) because the chart hardcodes staleReplicaTimeout: "30".
# Parameters otherwise mirror what chart 1.12.1 rendered.
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: longhorn
annotations:
storageclass.kubernetes.io/is-default-class: "true"
# StorageClass parameters are immutable - let Flux recreate the object on change
kustomize.toolkit.fluxcd.io/force: enabled
provisioner: driver.longhorn.io
reclaimPolicy: Retain
allowVolumeExpansion: true
volumeBindingMode: Immediate
parameters:
numberOfReplicas: "3"
# minutes a failed replica is kept for reuse before it is discarded and fully rebuilt;
# 30 was shorter than a planned node shutdown and caused a ~1.2TB full rebuild of kube-3
staleReplicaTimeout: "2880"
fromBackup: ""
fsType: ext4
dataLocality: disabled
unmapMarkSnapChainRemoved: ignored
disableRevisionCounter: "true"
dataEngine: v1
backupTargetName: default