背景:VMware15.0ubuntu16.04-64位32G RAM +16核CPU
/etc/主机: 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",则浏览器的状态是”加载“。
我肯定这有什么问题。我真诚地希望再次得到指导。谢谢。
发布于 2019-09-25 12:09:49
很高兴你能让它运转起来。奇怪的是,本地主机不允许连接。‘/etc/ host : 192.168.79.130本地主机’是来自您的主机还是VM?请注意,如果这是来自VM,它将无法工作,因为您的浏览器将尝试连接到"localhost“作为您的主机,而不是VM。使用IP地址时,浏览器将连接到VM。因此,请确保在主机/etc/ host文件中将域名(例如"acumos")分配给VM的IP地址。另外,要检查为什么要在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:
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>
https://stackoverflow.com/questions/58097472
复制相似问题