我已在本地使用Bosh Lite设置Cloud Foundry,并按照here所述上传了干细胞和版本。当我尝试使用我的CF安装并连接到API端点时,我收到连接拒绝错误,如下所示:
$ cf api --skip-ssl-validation https://api.10.244.0.34.xip.io
Setting api endpoint to https://api.10.244.0.34.xip.io...
FAILED
Error performing request: Get https://api.10.244.0.34.xip.io/v2/info: dial tcp
10.244.0.34:443: connection refused
我可以从我的机器上获取10.244.0.34
IP地址(以及下面列出的所有地址):
$ ping 10.244.0.34
PING 10.244.0.34 (10.244.0.34) 56(84) bytes of data.
64 bytes from 10.244.0.34: icmp_seq=1 ttl=63 time=2.47 ms
64 bytes from 10.244.0.34: icmp_seq=2 ttl=63 time=1.84 ms
64 bytes from 10.244.0.34: icmp_seq=3 ttl=63 time=2.28 ms
--- 10.244.0.34 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 1.842/2.201/2.473/0.264 ms
以下是在云上运行的不同VM的列表:
$ bosh vms
Deployment `cf-warden'
Director task 6
Task 6 done
+------------------------------------+---------+---------------+--------------+
| Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+
| api_z1/0 | running | large_z1 | 10.244.0.138 |
| etcd_z1/0 | running | medium_z1 | 10.244.0.42 |
| ha_proxy_z1/0 | running | router_z1 | 10.244.0.34 |
| hm9000_z1/0 | running | medium_z1 | 10.244.0.142 |
| loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.244.0.150 |
| loggregator_z1/0 | running | medium_z1 | 10.244.0.146 |
| login_z1/0 | running | medium_z1 | 10.244.0.134 |
| nats_z1/0 | running | medium_z1 | 10.244.0.6 |
| postgres_z1/0 | running | medium_z1 | 10.244.0.30 |
| router_z1/0 | running | router_z1 | 10.244.0.22 |
| runner_z1/0 | running | runner_z1 | 10.244.0.26 |
| uaa_z1/0 | running | medium_z1 | 10.244.0.130 |
+------------------------------------+---------+---------------+--------------+
VMs total: 12
我在成功建立端点连接时缺少什么?