mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #87463 from mwwolters/healthmon2healthz
Migrate health monitor from read only port to healthz port
This commit is contained in:
commit
04cfa4981a
@ -72,7 +72,7 @@ function kubelet_monitoring {
|
|||||||
local -r max_seconds=10
|
local -r max_seconds=10
|
||||||
local output=""
|
local output=""
|
||||||
while [ 1 ]; do
|
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.
|
# Print the response and/or errors.
|
||||||
echo $output
|
echo $output
|
||||||
echo "Kubelet is unhealthy!"
|
echo "Kubelet is unhealthy!"
|
||||||
|
Loading…
Reference in New Issue
Block a user