mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
「✨」 feat: fixed the p1 so it launch in one command, no more --no-provision
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user