背景:VMware15.0 ubuntu16.04-64bit 32G RAM + 16Core CPU
/ etc / hosts:192.168.79.130本地主机
执行此操作(并在出现提示时输入sudo密码):
git clone https://gerrit.acumos.org/r/system-integration
apt-get -y update
apt-get -y install docker-ce=18.06.3~ce~3-0~ubuntu
if [[ "$(id -nG "$USER" | grep docker)" == "" ]]; then sudo usermod -aG docker $USER; fi
sudo visudo #add
jp ALL=(ALL:ALL) NOPASSWD:ALL
# Logged out and in again and verified that my user is in the docker group
cd system-integration/tools/
sudo bash setup_k8s_stack.sh setup
cd
sudo bash system-integration/AIO/setup_prereqs.sh k8s localhost $USER generic 2>&1 | tee aio_prep.log
# When "Prerequisites setup is complete" messages is displayed I continue with
cd system-integration/AIO
sudo bash oneclick_deploy.sh 2>&1 | tee aio_deploy.log
成功实现,并具有以下提示:
oneclick_deploy.sh main:384 (Tue Sep 24 20:39:44 PDT 2019) Deploy is complete.
You can access the Acumos portal and other services at the URLs below,
assuming hostname "localhost" is resolvable from your workstation:
Portal: https://localhost
Common Data Service Swagger UI: https://localhost/ccds/swagger-ui.html
Portal Swagger UI: https://localhost/api/swagger-ui.html
Onboarding Service Swagger UI: https://localhost/onboarding-app/swagger-ui.html
Kibana: http://localhost:30561/app/kibana
Nexus: http://localhost:30881
当我使用Chrome访问Acumos门户网站(“ https://localhost”)时,提示:
This site can’t be reached
localhost refused to connect.
如果访问“ https://192.168.79.130”,则提示:
default backend - 404
只能成功访问“ http://192.168.79.130:30881/”和“ http://192.168.79.130:30561/app/kibana”。 但是,如果将“ 192.168.79.130”替换为“ localhost”,则浏览器的状态为“正在加载”。
我确定这有问题。我真诚地希望再次受到指导。谢谢。
答案 0 :(得分:0)
很高兴您能够运行它。很好奇的是,本地主机将不允许连接。是来自主机还是VM的“ / etc / hosts:192.168.79.130 localhost”信息?请注意,如果这是来自VM,则它将无法工作,因为您的浏览器将尝试连接到“ localhost”作为您的主机,而不是VM。使用IP地址时,浏览器将连接到VM。因此,请确保在主机/ etc / hosts文件中为虚拟机的IP地址分配一个域名(例如“ acumos”)。另外,要检查为什么在VM内可能会收到“默认后端-404”响应,请确保inginx-ingress控制器正在运行,例如
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
acumos-nginx-ingress-controller LoadBalancer 10.109.8.56 10.1.0.14 80:30080/TCP,443:30443/TCP 8d
acumos-nginx-ingress-default-backend ClusterIP 10.105.216.16 <none> 80/TCP 8d
...,已设置门户的入口规则:
kubectl get ingress -n acumos portal-ingress
NAME HOSTS ADDRESS PORTS AGE
portal-ingress (per your VM domain) 80, 443 8d
...,以及您的VM的入口详细信息,可将您连接到正在运行的Portal-FE:
kubectl describe ingress -n acumos portal-ingress
Name: portal-ingress
Namespace: acumos
Address:
Default backend: default-http-backend:80 (<none>)
TLS:
ingress-cert terminates (your VM domain)
Rules:
Host Path Backends
---- ---- --------
(your VM domain) / portal-fe-service:8085 (<none>)
Annotations:
kubernetes.io/ingress.class: nginx
Events: <none>
``