Skip to content

Commit

Permalink
Fix etcd install
Browse files Browse the repository at this point in the history
ETCD was not always installed when selecting install. Added API availability check after ETCD installation request.
  • Loading branch information
Karabass-OFF authored Sep 27, 2024
1 parent b6858d1 commit eb30f2e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion talos-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,20 @@ else
fi
if [ "${should_bootstrap}" = 1 ]; then
talosctl --talosconfig=talosconfig -e "${node}" -n "${node}" bootstrap
count=0
max_retries=20
while ! nmap -Pn ${vip_address} -p 50000 | grep -q 'open' && [ ${count} -lt ${max_retries} ]; do
count=$((count+1))
sleep 5
talosctl --talosconfig=talosconfig -e "${node}" -n "${node}" bootstrap
done
if [ ${count} -ge ${max_retries} ]; then
dialog --keep-tite --title "talos-bootstrap" --msgbox "Port 50000 closed, ETCD is not installed!" 5 26
exit 1
fi
fi
# Saving cluster configuration
cat > cluster.conf <<EOT
BOOTSTRAP_ETCD=false
Expand Down

0 comments on commit eb30f2e

Please sign in to comment.