mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 15:26:50 +02:00
12 lines
316 B
Bash
12 lines
316 B
Bash
#!/bin/sh
|
|
|
|
until microk8s.status --wait-ready;
|
|
do sleep 3; echo "waiting for worker status..";
|
|
done
|
|
|
|
|
|
if microk8s status | grep "datastore master nodes: 127.0.0.1:19001" > /dev/null 2>&1; then
|
|
microk8s join ${main_node_ip}:25000/${cluster_token} --worker
|
|
else
|
|
echo "Join process already done. Nothing to do"
|
|
fi |