Remove sudo from k0s install

This commit is contained in:
2025-03-22 23:18:53 +01:00
parent 65f17aa432
commit 5b5bf25acb

View File

@@ -72,7 +72,7 @@ runcmd:
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
# Install k0s
- curl -sSLf https://get.k0s.sh | sudo sh
- curl -sSLf https://get.k0s.sh | sh
- k0s install controller --enable-worker
- systemctl enable --now k0scontroller
# Wait for k3s to be ready