File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ MAX_WAIT="${MAX_WAIT:-300}" # 5 minutes default
1111ELAPSED=0
1212
1313echo " Waiting for index gateway ring to be ready..."
14- echo " Backend service: ${BACKEND_SVC} .${KB_NAMESPACE} .svc.${CLUSTER_DOMAIN} :${BACKEND_PORT} "
14+ echo " Backend service: ${BACKEND_SVC} .${KB_NAMESPACE} .svc.${CLUSTER_DOMAIN} . :${BACKEND_PORT} "
1515echo " Max wait time: ${MAX_WAIT} seconds"
1616
1717while [ $ELAPSED -lt $MAX_WAIT ]; do
1818 # Check if backend service is accessible
19- if curl -sf " http://${BACKEND_SVC} .${KB_NAMESPACE} .svc.${CLUSTER_DOMAIN} :${BACKEND_PORT} /ready" > /dev/null 2>&1 ; then
19+ if curl -sf " http://${BACKEND_SVC} .${KB_NAMESPACE} .svc.${CLUSTER_DOMAIN} . :${BACKEND_PORT} /ready" > /dev/null 2>&1 ; then
2020 # Check ring for ACTIVE instances (parse HTML)
21- RING_HTML=$( curl -sf " http://${BACKEND_SVC} .${KB_NAMESPACE} .svc.${CLUSTER_DOMAIN} :${BACKEND_PORT} /indexgateway/ring" 2> /dev/null || echo " " )
21+ RING_HTML=$( curl -sf " http://${BACKEND_SVC} .${KB_NAMESPACE} .svc.${CLUSTER_DOMAIN} . :${BACKEND_PORT} /indexgateway/ring" 2> /dev/null || echo " " )
2222 if [ -n " $RING_HTML " ]; then
2323 ACTIVE_COUNT=$( echo " $RING_HTML " | grep -o ' <td>ACTIVE</td>' | wc -l || echo " 0" )
2424 if [ " $ACTIVE_COUNT " -gt " 0" ]; then
You can’t perform that action at this time.
0 commit comments