Skip to content

Commit e08b37e

Browse files
committed
modify readiness probe for ipv6
1 parent 3e91ad9 commit e08b37e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker/runtime/be/resource/be_disaggregated_probe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ ready_probe_with_no_tls()
9090
{
9191
local webserver_port=$(parse_config_file_with_key "webserver_port")
9292
webserver_port=${webserver_port:=$DEFAULT_WEBSERVER_PORT}
93-
local ip=`hostname -i | awk '{print $1}'`
94-
local url="http://${ip}:${webserver_port}/api/health"
93+
local host=`hostname -f`
94+
local url="http://${host}:${webserver_port}/api/health"
9595

9696
local response=$(curl -s -w "\n%{http_code}" $url)
9797
local http_code=$(echo "$response" | tail -n1)

docker/runtime/fe/resource/fe_disaggregated_probe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ ready_probe_with_no_tls()
5454
{
5555
local http_port=$(parse_config_file_with_key "http_port")
5656
http_port=${http_port:=$DEFAULT_HTTP_PORT}
57-
local ip=`hostname -i | awk '{print $1}'`
58-
local url="http://${ip}:${http_port}/api/health"
57+
local host=`hostname -f`
58+
local url="http://${host}:${http_port}/api/health"
5959

6060
local response=$(curl -s -w "\n%{http_code}" $url)
6161
local http_code=$(echo "$response" | tail -n1)

0 commit comments

Comments
 (0)