10 lines
279 B
Bash
10 lines
279 B
Bash
#!/bin/bash
|
|
# Get the master node's IP from the arguments
|
|
MASTER_IP=$1
|
|
|
|
# Get the token from the shared folder
|
|
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 -
|