背景: VMware15.0 ubuntu16.04-64bit 32G RAM + 16Core CPU
/etc/hosts: 192.168.79.130 localhost
执行此操作(并在出现提示时键入 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",则浏览器的状态为"正在加载"。
我敢肯定它有问题。我真诚地希望再次得到指导。谢谢。
很高兴你能够让它运行。奇怪的是,本地主机不允许连接。"/etc/hosts: 192.168.79.130 localhost"信息来自主机还是 VM?请注意,如果这是来自 VM,则它不起作用,因为浏览器将尝试连接到"localhost"作为主机,而不是 VM。使用 IP 地址时,浏览器将连接到 VM。因此,请确保在主机/etc/hosts文件中为虚拟机的IP地址分配域名(例如"acumos"(。此外,要检查为什么您可能会在虚拟机内部收到"默认后端 - 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
...,以及将你连接到正在运行的门户 FE 的 VM 的入口详细信息:
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>
''