tweaked script

This commit is contained in:
James Turland 2023-11-15 11:21:27 +00:00
parent d57cbaafb4
commit 521f040ad9

View file

@ -173,8 +173,6 @@ EOF
echo -e " \033[32;5mMaster node joined successfully!\033[0m"
done
kubectl get nodes -o wide
# Step 7: Add Workers
for newnode in "${workers[@]}"; do
ssh -tt $user@$newnode -i ~/.ssh/$certName sudo su <<EOF
@ -190,8 +188,6 @@ EOF
echo -e " \033[32;5mMaster node joined successfully!\033[0m"
done
kubectl get nodes -o wide
#Step 8: Setup Kube-VIP as LoadBalancer
#IP range for loadbalancer services to use
kubectl create configmap -n kube-system kubevip --from-literal range-global=$lbrange