diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index d0823f1..38b7934 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -24,6 +24,11 @@ sed -i -e "s/127.0.0.1/$REMOTE_IP/" ~/.kube/config add_interface_label +kubectl apply -k ${SCRIPT_DIR}/../clusters/titan.lan.huizinga.dev/kube-vip/ + +echo "Join the other nodes to the cluster, once done hit enter" +read + # Add sops secret to the cluster kubectl apply -f ${SCRIPT_DIR}/namespace.yaml sops decrypt ${SCRIPT_DIR}/sops-gpg.yaml | kubectl apply -f - @@ -34,6 +39,4 @@ flux bootstrap git --url ssh://git@huizinga.dev/Dreaded_X/flux-infra --branch=ma # Update the ip to the control plane virtual ip sed -i -e "s/$REMOTE_IP/$VIP/" ~/.kube/config -sleep 5 - kubectl get nodes