Merge pull request #36915 from jayunit100/kubelet_fail_local_up

Automatic merge from submit-queue

[local-up-cluster] fail fast if kubelet start failed

Fixes #36832
This commit is contained in:
Kubernetes Submit Queue 2016-11-30 04:05:35 -08:00 committed by GitHub
commit 09bb156116

View File

@ -529,6 +529,12 @@ function start_kubelet {
${image_service_endpoint_args} \
--port="$KUBELET_PORT" >"${KUBELET_LOG}" 2>&1 &
KUBELET_PID=$!
# Quick check that kubelet is running.
if ps -p $KUBELET_PID > /dev/null ; then
echo "kubelet ( $KUBELET_PID ) is running."
else
cat ${KUBELET_LOG} ; exit 1
fi
else
# Docker won't run a container with a cidfile (container id file)
# unless that file does not already exist; clean up an existing