CloudFoundry应用程序打开两个端口 [英] CloudFoundry application opening two ports

查看:67
本文介绍了CloudFoundry应用程序打开两个端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个打开两个端口的CF应用程序。 AFAIK CF只能在其中一个上创建路由-到位于 VCAP_APP_PORT PORT 的路由。如何创建到第二个端口的路由?我不介意将单独的名称定向到其他端口。

I have a CF application that opens two ports. AFAIK CF can create routing on only for one of them - to the one that is located in VCAP_APP_PORT or PORT. How can I create some route to the second port? I don't mind having separate name directing to other port.

推荐答案

当前Cloud Foundry上的应用程序无法拥有两个端口映射到其容器环境。作为新的迭戈运行时的一部分,已经公开了多个端口映射,但是当前无法通过API来使用。

Currently an application on Cloud Foundry is not able to have two ports mapped into its container environment. As part of the new Diego runtime, multiple port mappings has been exposed, but is not currently available through the API.

根据您的需要,您可以看一下在格子中,该格子使用Diego运行时。某些文档可以在此处找到

Depending on what you need, you could take a look at Lattice, which uses the Diego runtime. Some documentation can be found here.

这篇关于CloudFoundry应用程序打开两个端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆