我尝试开始使用 fabric 8 并在 docker 上打开班次。一个开放的班次实例(单个 docker 容器)正在运行,如下所述:https ://docs.openshift.org/latest/getting_started/administrators.html#running-in-a-docker-container 。我将 Fabric 8 安装为http://fabric8.io/guide/getStarted/openshift.html,现在基本的 pod 正在运行。
但我无法到达服务
oc get services
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
docker-registry 172.30.194.44 <none> 5000/TCP docker-registry=default 18h
fabric8 172.30.178.196 80/TCP group=io.fabric8.apps,project=console,provider=fabric8 18h
kubernetes 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP <none> 20h
router 172.30.77.252 <none> 80/TCP router=router 18h
oc describe service fabric8
Name: fabric8
Namespace: default
Labels: group=io.fabric8.apps,project=console,provider=fabric8,version=2.2.116
Selector: group=io.fabric8.apps,project=console,provider=fabric8
Type: LoadBalancer
IP: 172.30.178.196
Port: <unnamed> 80/TCP
NodePort: <unnamed> 30308/TCP
Endpoints: 172.17.0.2:9090
Session Affinity: None
No events.
ping 172.17.0.2:9090
ping: unknown host 172.17.0.2:9090
gheiler@testCluster:~$ ping 172.30.178.196
PING 172.30.178.196 (172.30.178.196) 56(84) bytes of data.
From 62.218.18.245 icmp_seq=1 Destination Host Unreachable
From 62.218.18.245 icmp_seq=2 Destination Host Unreachable
在故障排除部分: http: //fabric8.io/guide/getStarted/openshift.html 一些想法,如
corsAllowedOrigins:
- .*
建议。但我不知道如何在 docker 容器中启用它们。您知道为什么我无法访问我的基本 fabric8 控制台吗?