Files
k8s-starter-pack/apps/longhorn/values.yaml
T

31 lines
1.6 KiB
YAML

# Values for the upstream Longhorn chart, nested under `longhorn:` (the
# dependency's name in Chart.yaml).
longhorn:
defaultSettings:
# Must match the mount path from the UserVolumeConfig in
# talos/patch-longhorn.yaml (/var/mnt/<name>) — this is what points
# Longhorn at the dedicated data disk instead of its own default path
# on the root filesystem, which on Talos is ephemeral/unsuited for
# real data anyway.
defaultDataPath: /var/mnt/longhorn
# Only nodes explicitly labelled `node.longhorn.io/create-default-disk=true`
# become storage nodes. This keeps Longhorn from trying to create a disk on
# the Raspberry Pi control planes, which deliberately have no data disk.
createDefaultDiskLabeledNodes: true
# There are two independent storage workers, one on Gimli and one on
# Titus. Three replicas could never schedule; two keeps one complete copy
# on each host and remains readable if either worker fails.
defaultReplicaCount: 2
# Longhorn's own headroom settings, kept conservative: stop scheduling
# new replicas onto a disk once free space drops below these
# thresholds, so the cluster degrades gracefully instead of actually
# filling a disk.
storageMinimalAvailablePercentage: 25
storageReservedPercentageForDefaultDisk: 30
preUpgradeChecker:
# Longhorn's own pre-upgrade check runs as a Job that expects to reach
# an upgrade-responder service on the internet by default. Harmless to
# leave on, but pointless for a learning cluster and one less thing to
# explain — off by default here.
jobEnabled: false