OpenShift集群中的PostgreSQL服务可以通过公开的路由接收外部流量吗 [英] Can PostgreSQL service in OpenShift cluster receive external traffic via exposed route

查看:70
本文介绍了OpenShift集群中的PostgreSQL服务可以通过公开的路由接收外部流量吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在OpenShift集群中将PostgreSQL作为服务运行并获取解决方案

我得出的(初步)结论是OpenShift external traffic to it via an exposed route (the recommended default way for communicating from the outside)?

The OpenShift 3.9 documentation states this:

A router is configured to accept external requests and proxy them based on the configured routes. This is limited to HTTP/HTTPS(SNI)/TLS(SNI), which covers web applications.

PostgreSQL can to SSL and it can be configured to listen on port 443 (HTTPS), but I think it cannot do SNI yet. I would only run a single pod behind the service, so load balancing should not cause issues. If feasible, I would expect to connect into the cluster and to the service with psql -h ....

解决方案

I have come to the (preliminary) conclusion that OpenShift port forwarding (oc port-forward) offers the best way (well ... :) forward in this situation.

这篇关于OpenShift集群中的PostgreSQL服务可以通过公开的路由接收外部流量吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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