mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-10-14 02:54:45 +02:00
「🔨」 fix: compliant with the subject
This commit is contained in:
4
p1/scripts/install-all.sh
Normal file
4
p1/scripts/install-all.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sudo apt update
|
||||
sudo apt install curl -y
|
6
p1/scripts/setup-S.sh
Normal file
6
p1/scripts/setup-S.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
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
|
||||
echo "Copying token"
|
||||
sudo cat /var/lib/rancher/k3s/server/node-token > /vagrant/node-token
|
8
p1/scripts/setup-SW.sh
Normal file
8
p1/scripts/setup-SW.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
while [ ! -f /vagrant/node-token ];
|
||||
do sleep 1;
|
||||
done
|
||||
|
||||
TOKEN=$(cat /vagrant/node-token)
|
||||
curl -sfL https://get.k3s.io | K3S_URL=https://192.168.56.110:6443 K3S_TOKEN=$TOKEN sh -s - --node-ip=192.168.56.111
|
Reference in New Issue
Block a user