diff --git a/scripts/cluster/run-cross-node-file-e2e.sh b/scripts/cluster/run-cross-node-file-e2e.sh index e66d03f..220932f 100755 --- a/scripts/cluster/run-cross-node-file-e2e.sh +++ b/scripts/cluster/run-cross-node-file-e2e.sh @@ -46,8 +46,9 @@ done [[ ${pod_count:-0} == 1 && ${process_role:-} == worker && ${pod_ready:-} == true ]] [[ $(k3s kubectl get deployment easyai-api-ningbo -n easyai \ -o jsonpath='{.spec.template.spec.containers[0].env[?(@.name=="AI_GATEWAY_PROCESS_ROLE")].value}') == api ]] -[[ $(k3s kubectl get deployment easyai-worker-ningbo -n easyai \ - -o jsonpath='{.status.readyReplicas}') == 0 ]] +ningbo_worker_ready=$(k3s kubectl get deployment easyai-worker-ningbo -n easyai \ + -o jsonpath='{.status.readyReplicas}') +[[ ${ningbo_worker_ready:-0} -eq 0 ]] curl -fsS http://10.77.0.1:31088/api/v1/readyz | grep -q '"ok":true' curl -fsS http://10.77.0.2:31089/api/v1/readyz | grep -q '"ok":true' REMOTE