Openshift Routers: Should they be exposed for applications?

时间:2017-08-30 20:38:48

标签: openshift router

I have two openshift routers, running as pods, running in OSE.

However, I don't see any associated services in my openshift cluster which forwards traffic / loadbalances to them.

Should I expose my routers to the external world in a normal OSE environment?

Note that this is in a running openshift (OSE) cluster, so I do not think it would be appropriate to recreate the routers with new service accounts, and even if I did want to do this, it isn't always gauranteed that I will have access inside of OpenShift to do so.

1 个答案:

答案 0 :(得分:0)

如果您正在谈论作为OpenShift平台一部分的haproxy路由器,并且处理外部HTTP / HTTPS请求到使用路由暴露的应用程序的pod的路由,那么不,你应该至少不要将其暴露为OpenShift Route 。为它们添加路径将是循环的,因为路由器实现了路由。

haproxy路由器的传入端口确实需要暴露在群集之外,但这应该作为安装OpenShift群集时所做设置的一部分进行处理。在安装OpenShift集群时,您可能需要做的准备工作取决于安装OpenShift的目标系统。

退一步解释你遇到的问题可能会更好。如果这是一个安装问题,您可能最好在其中一个列表上询问:

因为更熟悉安装OpenShift的人更喜欢这种情况。