Skip to content

Commit 2392e1e

Browse files
committed
Fix longhorn configuration bugs
Extra: introduce longhorn pv vales for portainer
1 parent 8719eed commit 2392e1e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

charts/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ helmfile-sync: .check-helmfile-installed helmfile.yaml ## Syncs the helmfile con
4949
$(MAKE) -s .helmfile-local-post-install; \
5050
fi
5151

52-
5352
.PHONY: configure-local-hosts
5453
configure-local-hosts: ## Adds local hosts entries for the machine
5554
@echo "Adding $(MACHINE_FQDN) hosts to /etc/hosts ..."

charts/longhorn/values.yaml.gotmpl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
global:
2-
nodeSelector:
3-
ops: "true"
1+
global: {}
2+
# uncomment once we have >1 ops nodes
3+
# nodeSelector:
4+
# ops: "true"
45

56
defaultSettings:
67
replicaAutoBalance: best-effort
@@ -15,8 +16,13 @@ defaultSettings:
1516
deletingConfirmationFlag: false
1617

1718
persistence:
19+
# use only for non-critical ops workloads
20+
# for critical workloads (e.g. database)
21+
# use application replication (e.g. postgres HA operator)
22+
defaultClass: false
23+
1824
# https://longhorn.io/docs/1.8.1/best-practices/#io-performance
19-
defaultDataLocality: least-effort
25+
defaultDataLocality: best-effort
2026
defaultClassReplicaCount: 2
2127
defaultFsType: xfs
2228

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
persistence:
22
enabled: true
33
size: "1Gi"
4-
storageClass: "csi-s3"
4+
storageClass: "longhorn"

0 commit comments

Comments
 (0)