我所在机构的防火墙设置阻止了大多数外部端口,目前,我具有内部Linux虚拟机,例如http://abc.xyz:5555(只能在内部网络中访问此链接)和Netscaler由管理员设置,以便将内部链接转发到可公开访问的链接:https : //def.edu。
现在我有多个使用端口5556、5557、5558的Web服务器。我想设置Kubernetes入口,所有流量首先进入入口控制器,并且入口会将流量转发到我的多个Web服务。通常如下图所示。
I only have port 5555 available, but all tutorials of Ingress seem only to support HTTP 80 and HTTPS 443 port. My question is, can I set up the Ingress controller host as http://abc.xyz:5555? Or I should go for other approaches, like this said: An Ingress does not expose arbitrary ports or protocols. Exposing services other than HTTP and HTTPS to the internet typically uses a service of type Service.Type=NodePort or Service.Type=LoadBalancer.
, if so, what terms/techniques should I use?
I suggest to use an ingress, since each loadbalancer gets an own external ip assigned. You can specify a custom port and protocols (tcp,udp,http). I worked with nginx, but the documentation seemed outdated (last checked last week). So we are currently using Traefik. The web dashboard was also a big help in debugging it.
How we solved it:
通过使用自定义值的头盔安装traefik,因此它侦听80和443以外的其他端口;在您的values.yaml中添加自定义入口点,并使用以下命令安装traefik:helm install --values values.yaml stable/traefik
安装您的入口http / tcp / udp路由
转发您的Web仪表板,然后转到http:// localhost:9000 / dashboard
请参阅官方文档以获取更多详细步骤:https : //docs.traefik.io/getting-started/install-traefik/#use-the-helm-chart
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句