We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01507d7 + 6b3516b commit c31ae39Copy full SHA for c31ae39
baremetal/k3s.sh
@@ -7,6 +7,7 @@
7
set -e
8
9
K3S_INSTALL_URL="https://get.k3s.io"
10
+K3S_VERSION="v1.34.5+k3s1"
11
K3S_BIN="/usr/local/bin/k3s"
12
KUBECONFIG="$HOME/.kube/config"
13
@@ -22,7 +23,7 @@ check_sudo() {
22
23
24
install_k3s() {
25
echo "Installing K3s..."
- curl -sfL $K3S_INSTALL_URL | sudo sh -
26
+ curl -sfL $K3S_INSTALL_URL | INSTALL_K3S_VERSION="${K3S_VERSION}" sudo -E sh -
27
echo "K3s installed."
28
29
# Make kubeconfig usable without sudo
0 commit comments