Skip to content

Commit 0adf49e

Browse files
Merge branch 'main' into tw-docker-deploy
2 parents 77929d2 + c31ae39 commit 0adf49e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

baremetal/k3s.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
set -e
88

99
K3S_INSTALL_URL="https://get.k3s.io"
10+
K3S_VERSION="v1.34.5+k3s1"
1011
K3S_BIN="/usr/local/bin/k3s"
1112
KUBECONFIG="$HOME/.kube/config"
1213

@@ -22,7 +23,7 @@ check_sudo() {
2223

2324
install_k3s() {
2425
echo "Installing K3s..."
25-
curl -sfL $K3S_INSTALL_URL | sudo sh -
26+
curl -sfL $K3S_INSTALL_URL | INSTALL_K3S_VERSION="${K3S_VERSION}" sudo -E sh -
2627
echo "K3s installed."
2728

2829
# Make kubeconfig usable without sudo

0 commit comments

Comments
 (0)