From e5aef0d344f40d1e057f12578c566eb6995896fe Mon Sep 17 00:00:00 2001 From: siaimes <34199488+siaimes@users.noreply.github.com> Date: Mon, 9 Aug 2021 10:46:15 +0800 Subject: [PATCH] fix missing `WEBPORTAL_URL` issue when installing services (#5538) [issue comment](https://github.com/microsoft/pai/issues/5445#issuecomment-827309308) --- contrib/kubespray/script/service-boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/kubespray/script/service-boot.sh b/contrib/kubespray/script/service-boot.sh index 0f6ea18153..0655707a18 100644 --- a/contrib/kubespray/script/service-boot.sh +++ b/contrib/kubespray/script/service-boot.sh @@ -45,7 +45,7 @@ echo "Starting OpenPAI service with dev-box..." sudo docker exec -w /mnt/pai dev-box-quick-start /bin/bash ./contrib/kubespray/script/start-service-in-dev-box.sh # print cluster info -WEBPORTAL_URL=http:$(kubectl config view -o jsonpath='{.clusters[].cluster.server}' | cut -d ":" -f 2) +WEBPORTAL_URL=http:$(sudo docker exec dev-box-quick-start kubectl config view -o jsonpath='{.clusters[].cluster.server}' | cut -d ":" -f 2) echo "" echo "OpenPAI is successfully deployed, please check the following information:" echo "Kubernetes cluster config : ~/pai-deploy/kube/config"