From 3d57b6a172c96993606f5cf381841bd585e46d44 Mon Sep 17 00:00:00 2001 From: Fabian <90555362+pfeiffr@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:44:26 +0200 Subject: [PATCH] Pinned k3s Version Following the YouTube series i encountered a fatal problem with the new release of k3s being 1.27.x. The script for installing k3s is working with a pinned version (v1.26.10+k3s2). As a good measure i would either put them both on the stable channel or leave both of them at the same fixed version. Thanks for your work Jim and the great explanation! --- Kubernetes/Longhorn/longhorn-K3S.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kubernetes/Longhorn/longhorn-K3S.sh b/Kubernetes/Longhorn/longhorn-K3S.sh index c3a867d..08b0c4a 100644 --- a/Kubernetes/Longhorn/longhorn-K3S.sh +++ b/Kubernetes/Longhorn/longhorn-K3S.sh @@ -42,6 +42,9 @@ storage=($longhorn1 $longhorn2 $longhorn3) #ssh certificate name variable certName=id_rsa +# K3S Version +k3sVersion="v1.26.10+k3s2" + ############################################# # DO NOT EDIT BELOW # ############################################# @@ -69,7 +72,7 @@ for newnode in "${storage[@]}"; do --ip $newnode \ --user $user \ --sudo \ - --k3s-channel stable \ + --k3s-version $k3sVersion \ --server-ip $master1 \ --k3s-extra-args "--node-label \"longhorn=true\"" \ --ssh-key $HOME/.ssh/$certName