如何在使用bosh-lite在vagrant上运行的cloudfoundry中部署应用程序?

时间:2016-01-22 10:07:29

标签: linux vagrant cloudfoundry devops bosh-deployer

我将尝试在我的本地流浪机上运行的云代工厂中部署应用程序。我已经使用bosh lite部署了CF.


vagrant@bosh-lite:~$ bosh vms
Acting as user 'admin' on 'Bosh Lite Director'
Deployment `cf-warden'

Director task 40

Task 40 done

+------------------------------------+--------------------+---------------+--------------+
| Job/index                          | State              | Resource Pool | IPs          |
+------------------------------------+--------------------+---------------+--------------+
| api_z1/0                           | unresponsive agent | large_z1      |              |
| consul_z1/0                        | unresponsive agent | small_z1      |              |
| doppler_z1/0                       | unresponsive agent | medium_z1     |              |
| etcd_z1/0                          | unresponsive agent | medium_z1     |              |
| ha_proxy_z1/0                      | unresponsive agent | router_z1     |              |
| hm9000_z1/0                        | unresponsive agent | medium_z1     |              |
| loggregator_trafficcontroller_z1/0 | running            | small_z1      | 10.244.0.146 |
| nats_z1/0                          | unresponsive agent | medium_z1     |              |
| postgres_z1/0                      | unresponsive agent | medium_z1     |              |
| router_z1/0                        | unresponsive agent | router_z1     |              |
| runner_z1/0                        | unresponsive agent | runner_z1     |              |
| uaa_z1/0                           | unresponsive agent | medium_z1     |              |
+------------------------------------+--------------------+---------------+--------------+

VMs total: 12

当我尝试设定目标时,我收到以下问题::

vagrant@bosh-lite:~$ cf api --skip-ssl-validation https://api.10.244.0.146.xip.io
Setting api endpoint to https://api.10.244.0.146.xip.io...
FAILED
Error performing request: Get https://api.10.244.0.146.xip.io/v2/info: dial tcp 10.244.0.146:443: connection refused

1 个答案:

答案 0 :(得分:1)

似乎作业(api_z1 / 0等)在该部署中无法运行。所有这些都应处于“运行”状态。请通过运行“bosh cck”来尝试云检查命令,看看是否可以恢复它们。

启动并运行后,请尝试:“cf api https://api.bosh-lite.com --skip-ssl-validation”