Skip to content

Commit

Permalink
Fix etcd install (#16)
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 Dec 27, 2024
1 parent 4eee689 commit 4515355
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 @@ -514,9 +514,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 4515355

Please sign in to comment.