Skip to content

Commit c31ae39

Browse files
authored
Merge pull request #424 from open-edge-platform/dev/hemanthk/k3s_detect
Update K3S installation command to specify version until k3s detect i…
2 parents 01507d7 + 6b3516b commit c31ae39

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)