Merge pull request #88125 from mwwolters/flex2healthz

Switch flexvolume_node_setup.sh from kubelet RO port to healthz port
This commit is contained in:
Kubernetes Prow Robot 2020-03-17 16:20:07 -07:00 committed by GitHub
commit 8055c92e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,10 +56,10 @@ umount_silent() {
# Waits for kubelet to restart for 1 minute.
kubelet_wait() {
timeout=60
kubelet_readonly_port=10255
healthz_port=10248
until [[ $timeout -eq 0 ]]; do
printf "."
if [[ $( curl -s http://localhost:${kubelet_readonly_port}/healthz ) == "ok" ]]; then
if [[ $( curl -s http://localhost:${healthz_port}/healthz ) == "ok" ]]; then
return 0
fi
sleep 1