0

I have created an application on OpenShift. This consists out of 1 pod and 1 service. It's possbile to curl to the ip of my service (on my server). So I can read it's code. For example:

curl 172.30.82.121:8080

A service is using a private IP. So it's only accessible on the server. But I want to see the application in a browser which is not running on the server. Is this possible to do and how?

4

1 回答 1

0

您将按照此处所述安装路由器https://docs.openshift.org/latest/install_config/install/deploy_router.html

如果您只是想测试系统,您还可以让您的笔记本电脑将用于服务 VIP 的连接直接发送到您的节点 - 在 OSX 上

sudo route add 172.30.0.0/16 <ip of node>

或 Linux

sudo ip route add 172.30.0.0/16 via <ip of node>

或窗户

route add 172.30.0.0 mask 255.255.0.0 <ip of node> metric 2
于 2015-10-03T12:36:19.140 回答