Log kubelet /healthz failure reasons to supervisord log file
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user