added scripts
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
echo "🚀 Instal·lant K3s Server (Master)..."
|
echo "🚀 Instal·lant K3s Server (Master)..."
|
||||||
|
|
||||||
curl -sfL https://get.k3s.io | sh -s - server --tls-san 192.168.3.10
|
curl -sfL https://get.k3s.io | sh -s - server --tls-san 192.168.3.10
|
||||||
|
|
||||||
sudo chown vagrant:vagrant /etc/rancher/k3s/k3s.yaml
|
sudo chown vagrant:vagrant /etc/rancher/k3s/k3s.yaml
|
||||||
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#Anem a buscar el node token al Master
|
#Anem a buscar el node token al Master
|
||||||
sudo cat /var/lib/rancher/k3s/server/node-token
|
#sudo cat /var/lib/rancher/k3s/server/node-token
|
||||||
|
#K3S_TOKEN=algun_string_random::server:segon_string_random
|
||||||
K3S_TOKEN=algun_string_random::server:segon_string_random
|
|
||||||
|
|
||||||
echo "🚀 Instal·lant K3s Agent (Worker) connectant a #{IP_MASTER}..."
|
echo "🚀 Instal·lant K3s Agent (Worker) connectant a #{IP_MASTER}..."
|
||||||
curl -sfL https://get.k3s.io | K3S_URL=https://192.168.3.10:6443 K3S_TOKEN=$K3S_TOKEN sh -
|
curl -sfL https://get.k3s.io | K3S_URL=https://192.168.3.10:6443 K3S_TOKEN=$K3S_TOKEN sh -
|
||||||
|
|||||||
Reference in New Issue
Block a user