diff --git a/deploy/kubernetes/easyai-ai-gateway-cluster-release b/deploy/kubernetes/easyai-ai-gateway-cluster-release index 40029e9..d6d398d 100755 --- a/deploy/kubernetes/easyai-ai-gateway-cluster-release +++ b/deploy/kubernetes/easyai-ai-gateway-cluster-release @@ -69,9 +69,9 @@ verify_site() { ningbo) address=10.77.0.1 ;; *) return 1 ;; esac - wait_for_url "$site API health" "http://$address:30088/api/v1/healthz" easyai-ai-gateway - wait_for_url "$site API readiness" "http://$address:30088/api/v1/readyz" '"ok":true' - wait_for_url "$site Web" "http://$address:30178/" 'EasyAI AI Gateway' + wait_for_url "$site API health" "http://$address:31088/api/v1/healthz" easyai-ai-gateway + wait_for_url "$site API readiness" "http://$address:31088/api/v1/readyz" '"ok":true' + wait_for_url "$site Web" "http://$address:31178/" 'EasyAI AI Gateway' } rollout_site() { diff --git a/deploy/kubernetes/production/application.yaml b/deploy/kubernetes/production/application.yaml index db76632..2ef4968 100644 --- a/deploy/kubernetes/production/application.yaml +++ b/deploy/kubernetes/production/application.yaml @@ -59,6 +59,8 @@ spec: ports: - name: http containerPort: 8088 + hostIP: 10.77.0.1 + hostPort: 31088 readinessProbe: httpGet: path: /api/v1/readyz @@ -165,6 +167,8 @@ spec: ports: - name: http containerPort: 8088 + hostIP: 10.77.0.2 + hostPort: 31088 readinessProbe: httpGet: path: /api/v1/readyz @@ -257,6 +261,8 @@ spec: ports: - name: http containerPort: 80 + hostIP: 10.77.0.1 + hostPort: 31178 readinessProbe: httpGet: path: / @@ -346,6 +352,8 @@ spec: ports: - name: http containerPort: 80 + hostIP: 10.77.0.2 + hostPort: 31178 readinessProbe: httpGet: path: / diff --git a/deploy/nginx/ai.51easyai.com-cluster.conf b/deploy/nginx/ai.51easyai.com-cluster.conf index 468a200..b1d9bae 100644 --- a/deploy/nginx/ai.51easyai.com-cluster.conf +++ b/deploy/nginx/ai.51easyai.com-cluster.conf @@ -1,15 +1,15 @@ upstream easyai_gateway_api { least_conn; keepalive 64; - server 10.77.0.1:30088 max_fails=2 fail_timeout=5s; - server 10.77.0.2:30088 max_fails=2 fail_timeout=5s; + server 10.77.0.1:31088 max_fails=2 fail_timeout=5s; + server 10.77.0.2:31088 max_fails=2 fail_timeout=5s; } upstream easyai_gateway_web { least_conn; keepalive 32; - server 10.77.0.1:30178 max_fails=2 fail_timeout=5s; - server 10.77.0.2:30178 max_fails=2 fail_timeout=5s; + server 10.77.0.1:31178 max_fails=2 fail_timeout=5s; + server 10.77.0.2:31178 max_fails=2 fail_timeout=5s; } server { diff --git a/deploy/nginx/cluster-acceptance-origin-ningbo.conf b/deploy/nginx/cluster-acceptance-origin-ningbo.conf index a730646..f3fc8b8 100644 --- a/deploy/nginx/cluster-acceptance-origin-ningbo.conf +++ b/deploy/nginx/cluster-acceptance-origin-ningbo.conf @@ -19,6 +19,6 @@ server { proxy_read_timeout 3600s; proxy_request_buffering off; proxy_buffering off; - proxy_pass http://10.77.0.1:30088; + proxy_pass http://10.77.0.1:31088; } } diff --git a/scripts/cluster/migrate-production.sh b/scripts/cluster/migrate-production.sh index 4b11ea1..2fb492f 100755 --- a/scripts/cluster/migrate-production.sh +++ b/scripts/cluster/migrate-production.sh @@ -331,11 +331,11 @@ AI_GATEWAY_ACTIVATE_WORKERS=false \ for site_ip in 10.77.0.1 10.77.0.2; do cluster_ssh "$CLUSTER_NINGBO_HOST" \ - "curl -fsS --max-time 10 http://$site_ip:30088/api/v1/healthz >/dev/null" + "curl -fsS --max-time 10 http://$site_ip:31088/api/v1/healthz >/dev/null" cluster_ssh "$CLUSTER_NINGBO_HOST" \ - "curl -fsS --max-time 10 http://$site_ip:30088/api/v1/readyz | grep -q '\"ok\":true'" + "curl -fsS --max-time 10 http://$site_ip:31088/api/v1/readyz | grep -q '\"ok\":true'" cluster_ssh "$CLUSTER_NINGBO_HOST" \ - "curl -fsS --max-time 10 http://$site_ip:30178/ | grep -q 'EasyAI AI Gateway'" + "curl -fsS --max-time 10 http://$site_ip:31178/ | grep -q 'EasyAI AI Gateway'" done "$script_dir/install-nginx-edges.sh" activate diff --git a/scripts/cluster/run-cross-node-file-e2e.sh b/scripts/cluster/run-cross-node-file-e2e.sh index 312be0c..313b4f8 100755 --- a/scripts/cluster/run-cross-node-file-e2e.sh +++ b/scripts/cluster/run-cross-node-file-e2e.sh @@ -31,8 +31,8 @@ k3s kubectl rollout status deployment/easyai-api-hongkong -n easyai --timeout=30 k3s kubectl set env deployment/easyai-api-ningbo -n easyai \ AI_GATEWAY_ASYNC_QUEUE_WORKER_ENABLED=false >/dev/null k3s kubectl rollout status deployment/easyai-api-ningbo -n easyai --timeout=300s -curl -fsS http://10.77.0.1:30088/api/v1/readyz | grep -q '"ok":true' -curl -fsS http://10.77.0.2:30088/api/v1/readyz | grep -q '"ok":true' +curl -fsS http://10.77.0.1:31088/api/v1/readyz | grep -q '"ok":true' +curl -fsS http://10.77.0.2:31088/api/v1/readyz | grep -q '"ok":true' REMOTE credentials_file=$(mktemp "$cluster_root/.local-secrets/cluster/e2e.XXXXXX")