mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-10-14 02:54:45 +02:00
「♻️」 refactor: cleaned a little p1
This commit is contained in:
@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# # setup docker
|
|
||||||
# sudo apt update
|
|
||||||
# sudo apt install -y docker.io
|
|
||||||
#
|
|
||||||
# sudo systemctl start docker
|
|
||||||
# sudo systemctl enable docker
|
|
||||||
#
|
|
||||||
# # install kubernetes
|
|
||||||
# sudo apt-get install -y apt-transport-https ca-certificates curl gpg
|
|
||||||
# curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
|
||||||
# echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.33/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
|
|
||||||
#
|
|
||||||
# sudo apt-get update
|
|
||||||
# sudo apt-get install -y kubelet kubectl
|
|
||||||
# sudo apt-mark hold kubelet kubectl
|
|
||||||
# sudo systemctl enable --now kubelet
|
|
||||||
#
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install curl -y
|
sudo apt install curl -y
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
echo "Launching k3s install"
|
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=192.168.56.110
|
||||||
echo "Copying token"
|
echo "Copying token"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
while [ ! -f /vagrant/node-token ];
|
while [ ! -f /vagrant/node-token ];
|
||||||
do sleep 2;
|
do sleep 1;
|
||||||
done
|
done
|
||||||
|
|
||||||
TOKEN=$(cat /vagrant/node-token)
|
TOKEN=$(cat /vagrant/node-token)
|
||||||
|
Reference in New Issue
Block a user