This is an automated email from the ASF dual-hosted git repository.

catpineapple pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 063f3534c2e [fix](docker) modify readiness probe for ipv6 on k8s 
(#56917)
063f3534c2e is described below

commit 063f3534c2e44e3163d338f45b78070bfdce14b6
Author: catpineapple <[email protected]>
AuthorDate: Mon Oct 13 21:39:37 2025 +0800

    [fix](docker) modify readiness probe for ipv6 on k8s (#56917)
---
 docker/runtime/be/resource/be_disaggregated_probe.sh | 4 ++--
 docker/runtime/fe/resource/fe_disaggregated_probe.sh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docker/runtime/be/resource/be_disaggregated_probe.sh 
b/docker/runtime/be/resource/be_disaggregated_probe.sh
index 467cb03df11..6273435155e 100755
--- a/docker/runtime/be/resource/be_disaggregated_probe.sh
+++ b/docker/runtime/be/resource/be_disaggregated_probe.sh
@@ -90,8 +90,8 @@ ready_probe_with_no_tls()
 {
     local webserver_port=$(parse_config_file_with_key "webserver_port")
     webserver_port=${webserver_port:=$DEFAULT_WEBSERVER_PORT}
-    local ip=`hostname -i | awk '{print $1}'`
-    local url="http://${ip}:${webserver_port}/api/health";
+    local host=`hostname -f`
+    local url="http://${host}:${webserver_port}/api/health";
 
     local response=$(curl -s -w "\n%{http_code}" $url)
     local http_code=$(echo "$response" | tail -n1)
diff --git a/docker/runtime/fe/resource/fe_disaggregated_probe.sh 
b/docker/runtime/fe/resource/fe_disaggregated_probe.sh
index 189be62d968..9e794381f5f 100755
--- a/docker/runtime/fe/resource/fe_disaggregated_probe.sh
+++ b/docker/runtime/fe/resource/fe_disaggregated_probe.sh
@@ -54,8 +54,8 @@ ready_probe_with_no_tls()
 {
     local http_port=$(parse_config_file_with_key "http_port")
     http_port=${http_port:=$DEFAULT_HTTP_PORT}
-    local ip=`hostname -i | awk '{print $1}'`
-    local url="http://${ip}:${http_port}/api/health";
+    local host=`hostname -f`
+    local url="http://${host}:${http_port}/api/health";
 
     local response=$(curl -s -w "\n%{http_code}" $url)
     local http_code=$(echo "$response" | tail -n1)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to