Merge pull request #87463 from mwwolters/healthmon2healthz

Migrate health monitor from read only port to healthz port
This commit is contained in:
Kubernetes Prow Robot 2020-02-11 17:06:08 -08:00 committed by GitHub
commit 04cfa4981a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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!"