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

How to deploy app in cloudfoundry running on vagrant using bosh-lite?

我正尝试在我本地的流浪者 运行 的云铸造厂中部署应用程序 machine.I 已经使用 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

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

一旦你准备好了 运行,试试:"cf api https://api.bosh-lite.com --skip-ssl-validation"