2016-01-22 16 views
0

我正試圖部署應用程序在我的本地流浪機上運行的雲代工。我已經使用bosh lite部署了CF。如何在使用bosh-lite運行在vagrant上的cloudfoundry中部署應用程序?


[email protected]:~$ 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 

當我試圖設定目標我得到了以下問題::

[email protected]:~$ 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

看來喬布斯(api_z1/0等)是不可操作的該部署。他們都應該處於「跑步」狀態。請通過運行「bosh cck」來嘗試雲檢查命令並查看是否可以恢復它們。

將它們啓動並運行後,請嘗試改爲:「cf api https://api.bosh-lite.com --skip-ssl-validation」

相關問題