」 feat: fixed the p1 so it launch in one command, no more --no-provision

This commit is contained in:
2025-12-16 21:36:24 +01:00
parent c736c9f155
commit ab440e31c0
6 changed files with 63 additions and 23 deletions

View File

@ -1,6 +1,13 @@
#!/usr/bin/env sh
S_ADDR="192.168.56.110"
echo "Launching k3s install"
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--write-kubeconfig-mode 644" sh -s - server --cluster-init --node-ip=192.168.56.110
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--write-kubeconfig-mode 644" sh -s - server --cluster-init --node-ip=$S_ADDR --bind-address=$S_ADDR --advertise-address=$S_ADDR
# Additional wait to ensure API is responsive (optional but helpful)
echo Waiting
sleep 15
echo "Copying token"
sudo cat /var/lib/rancher/k3s/server/node-token > /vagrant/node-token
cat /var/lib/rancher/k3s/server/node-token > /vagrant/node-token