diff --git a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh index 2649704ae13c..48a56d910c75 100644 --- a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh +++ b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/script/e2e-springcloud-sync.sh @@ -44,6 +44,11 @@ for sync in ${SYNC_ARRAY[@]}; do if [[ "${MIDDLEWARE_SYNC_ARRAY[@]}" =~ "${sync}" ]]; then kubectl apply -f "${SHENYU_TESTCASE_DIR}"/k8s/shenyu-"${sync}".yml sleep 10s + if [[ "${sync}" == "nacos" ]]; then + kubectl port-forward deployment/shenyu-nacos 8848:8848 + kubectl port-forward deployment/shenyu-nacos 9848:9848 + kubectl port-forward deployment/shenyu-nacos 9849:9849 + fi fi kubectl apply -f "${PRGDIR}"/shenyu-admin-"${sync}".yml sh "${CUR_PATH}"/healthcheck.sh http://localhost:31095/actuator/health diff --git a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/shenyu-cm.yml b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/shenyu-cm.yml index 13da4bf3f1b7..e64286c958dd 100644 --- a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/shenyu-cm.yml +++ b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-spring-cloud/k8s/shenyu-cm.yml @@ -482,7 +482,7 @@ data: shenyu: sync: nacos: - url: localhost:30848 + url: localhost:8848 namespace: 1c10d748-af86-43b9-8265-75f487d20c6c username: password: @@ -526,7 +526,7 @@ data: shenyu: sync: nacos: - url: localhost:30848 + url: localhost:8848 namespace: 1c10d748-af86-43b9-8265-75f487d20c6c username: password: