mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Switch flexvolume_node_setup.sh from kubelet RO port to healthz port
This commit is contained in:
parent
a70e574955
commit
ba74c1cfb4
@ -56,10 +56,10 @@ umount_silent() {
|
|||||||
# Waits for kubelet to restart for 1 minute.
|
# Waits for kubelet to restart for 1 minute.
|
||||||
kubelet_wait() {
|
kubelet_wait() {
|
||||||
timeout=60
|
timeout=60
|
||||||
kubelet_readonly_port=10255
|
healthz_port=10248
|
||||||
until [[ $timeout -eq 0 ]]; do
|
until [[ $timeout -eq 0 ]]; do
|
||||||
printf "."
|
printf "."
|
||||||
if [[ $( curl -s http://localhost:${kubelet_readonly_port}/healthz ) == "ok" ]]; then
|
if [[ $( curl -s http://localhost:${healthz_port}/healthz ) == "ok" ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user