我在azure机器上安装了单个VM云代工厂(4个内核,28GB RAM)。 最初cf cli命令工作正常。我能够登录(cf登录)cf和推送(cf推送)应用程序并查看托管应用程序(cf apps)。
azure-user@dsapi-boshvm:~$ cf apps
Getting apps in org default_organization / space azure as admin...
OK
name requested state instances memory disk urls
myapp started 3/3 128M 256M myapp.example.com
一段时间后,同一命令失败
azure-user@dsapi-boshvm:~$ cf apps
Getting apps in org default_organization / space azure as admin...
FAILED
Error performing request: Get https://api.xxx.xxx.xxx.xxx.xip.io/v2/spaces/80d34326-cffc-4b62-98b6-ddd1c087ca59/summary: dial tcp: lookup api.xxx.xxx.xxx.xxx.xip.io on xxx.xxx.xxx.xxx:xx: lame referral
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.
后来cf cli命令根本没有响应。
azure-user@dsapi-boshvm:~$ cf apps
Getting apps in org default_organization / space azure as admin...
没有上述命令的响应。
由于机器硬件规格,不确定是否发生了这个问题。
答案 0 :(得分:0)
xip.io
根据我的经验(以及许多其他人)而不是非常稳定的DNS服务
在某些时候(大约在2015年10月,CF v219),域bosh-lite.com
被设置为替换使用xip.io为bosh-lite。
我不知道您的CF是如何安装和配置的,但它可能就像执行cf api api.bosh-lite.com
一样简单(如果您无法将API端点的证书复制到您的信任库,可能带有--skip-ssl-validation
标志)并将其用作您的终点
(bosh-lite.com及其所有子域名解析为10.244.0.34)。