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

标签 linux vagrant cloud-foundry devops bosh-deployer

我要尝试在我的本地 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/

相关文章:

ubuntu - Vagrant Gitlab 安装失败

vagrant - 有没有办法在 Vagrant 中取消同步子文件夹?

javascript - Cloud Foundry 不兼容 IE?

node.js - 在 IBM Cloud Foundry 中运行 nodejs 应用程序时文件不压缩

ibm-cloud - 无法使用 ibmcloud CLI 登录

linux - Azure,制作 Linux VM 的副本而不删除原始虚拟机

linux - 如何计算gitlab中两次提交之间更改的行数?

linux - 什么时候用引号括起 shell 变量?

linux - 进程和线程与虚拟内存有何关系

Laravel 和 Vagrant : Don't have/home/vagrant folder