From ba74c1cfb43df68f1472c12f91dc90e1eeb89da4 Mon Sep 17 00:00:00 2001 From: Mark Wolters Date: Thu, 13 Feb 2020 09:58:51 -0800 Subject: [PATCH] Switch flexvolume_node_setup.sh from kubelet RO port to healthz port --- cluster/gce/gci/flexvolume_node_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/gci/flexvolume_node_setup.sh b/cluster/gce/gci/flexvolume_node_setup.sh index 7c5bb355c90..296118f7e45 100755 --- a/cluster/gce/gci/flexvolume_node_setup.sh +++ b/cluster/gce/gci/flexvolume_node_setup.sh @@ -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