diff --git a/p1/scripts/agent.sh b/p1/scripts/agent.sh index 13251b5..ff8f804 100644 --- a/p1/scripts/agent.sh +++ b/p1/scripts/agent.sh @@ -1,6 +1,4 @@ #!/bin/bash -apt update -apt install -y build-essential dkms linux-headers-generic # Get the master node's IP from the arguments MASTER_IP=$1 @@ -8,4 +6,4 @@ MASTER_IP=$1 TOKEN=$(cat /vagrant/token) # Install K3s agent (worker) and join the master node -curl -sfL https://get.k3s.io | K3S_URL=https://$MASTER_IP:6443 K3S_TOKEN=$TOKEN sh - \ No newline at end of file +curl -sfL https://get.k3s.io | K3S_URL=https://$MASTER_IP:6443 K3S_TOKEN=$TOKEN sh - diff --git a/p1/scripts/server.sh b/p1/scripts/server.sh index 5d9fe28..ce02205 100644 --- a/p1/scripts/server.sh +++ b/p1/scripts/server.sh @@ -1,6 +1,4 @@ #!/bin/bash -apt update -sudo apt install -y build-essential dkms linux-headers-generic # Install K3s on the master node curl -sfL https://get.k3s.io | sh - @@ -13,4 +11,4 @@ sudo chown -R vagrant:vagrant /home/vagrant/.kube/config TOKEN=$(sudo cat /var/lib/rancher/k3s/server/node-token) # Store the token for the workers to use -echo $TOKEN > /vagrant/token \ No newline at end of file +echo $TOKEN > /vagrant/token