我要尝试在我的本地 vagrant 机器上运行的 cloud foundry 中部署应用程序。我已经使用 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 等)似乎无法在该部署中运行。他们都应该处于“运行”状态。请通过运行“bosh cck”尝试云检查命令,看看是否可以恢复它们。
一旦启动并运行它们,请尝试改为:“cf api https://api.bosh-lite.com --skip-ssl-validation”
关于linux - 如何使用 bosh-lite 在 vagrant 上运行的 cloudfoundry 中部署应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34943986/