mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Log kubelet /healthz failure reasons to supervisord log file
This commit is contained in:
parent
e03c632a5e
commit
14f8ae1340
@ -34,6 +34,7 @@ max_seconds=10
|
|||||||
while true; do
|
while true; do
|
||||||
if ! curl --insecure -m ${max_seconds} -f -s https://127.0.0.1:{{kubelet_port}}/healthz > /dev/null; then
|
if ! curl --insecure -m ${max_seconds} -f -s https://127.0.0.1:{{kubelet_port}}/healthz > /dev/null; then
|
||||||
echo "kubelet failed!"
|
echo "kubelet failed!"
|
||||||
|
curl --insecure -s http://127.0.0.1:{{kubelet_port}}/healthz
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
sleep 10
|
sleep 10
|
||||||
|
Loading…
Reference in New Issue
Block a user