mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Extend logging for cluster validation
This commit is contained in:
parent
ee82d469c6
commit
e25a34c8a1
@ -45,13 +45,15 @@ while true; do
|
||||
if (( ${found} == "${NUM_MINIONS}" )) && (( ${ready} == "${NUM_MINIONS}")); then
|
||||
break
|
||||
else
|
||||
if (( attempt > 5 )); then
|
||||
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${NUM_MINIONS}. Your cluster may not be working. ${color_norm}"
|
||||
if (( attempt > 20 )); then
|
||||
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${NUM_MINIONS}. Your cluster may not be working.${color_norm}"
|
||||
cat -n "${MINIONS_FILE}"
|
||||
exit 2
|
||||
else
|
||||
echo -e "${color_yellow}Waiting for ${NUM_MINIONS} ready nodes. ${ready} ready nodes, ${found} registered. Retrying.${color_norm}"
|
||||
fi
|
||||
attempt=$((attempt+1))
|
||||
sleep 30
|
||||
sleep 15
|
||||
fi
|
||||
done
|
||||
echo "Found ${found} nodes."
|
||||
|
Loading…
Reference in New Issue
Block a user