# Make several attempts to deal with slow cluster birth.
# Make several attempts to deal with slow cluster birth.
return_value=0
attempt=0
attempt=0
while true;do
while true;do
# The "kubectl get nodes -o template" exports node information.
# The "kubectl get nodes -o template" exports node information.
...
@@ -59,7 +66,12 @@ while true; do
...
@@ -59,7 +66,12 @@ while true; do
if(( attempt > 100 ));then
if(( attempt > 100 ));then
echo-e"${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${EXPECTED_NUM_NODES}. Your cluster may not be fully functional.${color_norm}"
echo-e"${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${EXPECTED_NUM_NODES}. Your cluster may not be fully functional.${color_norm}"