mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Healthcheck the kubelet on the secure port rather than the read-only port.
This commit is contained in:
parent
c2ffe68d0f
commit
da94ed7957
@ -400,7 +400,7 @@ script
|
|||||||
echo "Docker daemon failed!"
|
echo "Docker daemon failed!"
|
||||||
pkill docker
|
pkill docker
|
||||||
fi
|
fi
|
||||||
if ! curl -m ${max_seconds} -f -s http://127.0.0.1:10255/healthz > /dev/null; then
|
if ! curl --insecure -m ${max_seconds} -f -s https://127.0.0.1:10250/healthz > /dev/null; then
|
||||||
echo "Kubelet is unhealthy!"
|
echo "Kubelet is unhealthy!"
|
||||||
pkill kubelet
|
pkill kubelet
|
||||||
fi
|
fi
|
||||||
|
@ -27,7 +27,7 @@ sleep 60
|
|||||||
max_seconds=10
|
max_seconds=10
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if ! curl -m ${max_seconds} -f -s http://127.0.0.1:10255/healthz > /dev/null; then
|
if ! curl --insecure -m ${max_seconds} -f -s https://127.0.0.1:10250/healthz > /dev/null; then
|
||||||
echo "kubelet failed!"
|
echo "kubelet failed!"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user