Migrate health monitor from read only port to healthz port

This commit is contained in:
Mark Wolters 2020-01-22 10:52:08 -08:00
parent a06d16565c
commit aee028dab8

View File

@ -72,7 +72,7 @@ function kubelet_monitoring {
local -r max_seconds=10
local output=""
while [ 1 ]; do
if ! output=$(curl -m "${max_seconds}" -f -s -S http://127.0.0.1:10255/healthz 2>&1); then
if ! output=$(curl -m "${max_seconds}" -f -s -S http://127.0.0.1:10248/healthz 2>&1); then
# Print the response and/or errors.
echo $output
echo "Kubelet is unhealthy!"