The 'docker' CLI image does not include curl binary, causing the health check to always fail. Switch to wget.
This commit is contained in:
@@ -69,7 +69,7 @@ steps:
|
||||
# 健康检查:等待新容器就绪
|
||||
HEALTHY=false
|
||||
for i in $(seq 1 15); do
|
||||
if curl -sf http://10.10.10.128:$PORT_STANDBY/health >/dev/null 2>&1; then
|
||||
if wget -q --timeout=3 -O /dev/null http://10.10.10.128:$PORT_STANDBY/health 2>/dev/null; then
|
||||
HEALTHY=true
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user