query minion's /healthz for sanity checking. Removing gcutil ssh to

VM, and check kubelet's status.
This commit is contained in:
Dawn Chen 2014-07-23 16:20:06 -07:00
parent e2e2ce44c1
commit eb6d0238d4

View File

@ -151,13 +151,16 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
exit 1 exit 1
fi fi
# Make sure the kubelet is running # Make sure the kubelet is healthy
gcutil ssh ${MINION_NAMES[$i]} /etc/init.d/kubelet status if [ "$(curl --insecure --user ${user}:${passwd} https://${KUBE_MASTER_IP}/proxy/minion/${MINION_NAMES[$i]}/healthz)" != "ok" ]; then
if [ "$?" != "0" ]; then
echo "Kubelet failed to install on ${MINION_NAMES[$i]} your cluster is unlikely to work correctly" echo "Kubelet failed to install on ${MINION_NAMES[$i]} your cluster is unlikely to work correctly"
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)" echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
exit 1 exit 1
else
echo "Kubelet is successfully installed on ${MINION_NAMES[$i]}"
fi fi
done done
echo echo