OpenShift集群中的PostgreSQL服务可以通过公开的路由接收外部流量吗 [英] Can PostgreSQL service in OpenShift cluster receive external traffic via exposed route
问题描述
是否可以在OpenShift集群中将PostgreSQL作为服务运行并获取无法进行SNI.我只会在服务后面运行一个pod,因此负载平衡不会引起问题.如果可行,我希望使用psql -h ...
连接到集群和服务.
我得出的(初步)结论是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屋!