From 237def767fcf25eae2f7f3c98d92c4ead161714d Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Mon, 6 Jan 2025 03:43:21 +0100 Subject: [PATCH] First join other nodes before running flux bootstrap --- scripts/bootstrap.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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