mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
fail fast if kubelet start failed
This commit is contained in:
parent
d60d9f3269
commit
378c837e7a
@ -513,6 +513,12 @@ function start_kubelet {
|
|||||||
${image_service_endpoint_args} \
|
${image_service_endpoint_args} \
|
||||||
--port="$KUBELET_PORT" >"${KUBELET_LOG}" 2>&1 &
|
--port="$KUBELET_PORT" >"${KUBELET_LOG}" 2>&1 &
|
||||||
KUBELET_PID=$!
|
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
|
else
|
||||||
# Docker won't run a container with a cidfile (container id file)
|
# Docker won't run a container with a cidfile (container id file)
|
||||||
# unless that file does not already exist; clean up an existing
|
# unless that file does not already exist; clean up an existing
|
||||||
|
Loading…
Reference in New Issue
Block a user