我可以为Kubernetes入口设置自定义端口,以监听80/443之外的端口吗? [英] Can I set custom ports for a Kubernetes ingress to listen on besides 80 / 443?
问题描述
我并不是说能够路由到特定端口,而是要实际更改入口侦听的端口.
I don't mean being able to route to a specific port, I mean to actually change the port the ingress listens on.
这可能吗?如何?在哪里记录?
Is this possible? How? Where is this documented?
推荐答案
来自 kubernetes文档:
Ingress不会公开任意端口或协议.将HTTP和HTTPS以外的服务公开到Internet时,通常使用Service.Type = NodePort或Service.Type = LoadBalancer类型的服务.
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.
可能可以在AWS之类的云提供商上自定义LoadBalancer,以监听其他端口.
It may be possible to customize a LoadBalancer on a cloud provider like AWS to listen on other ports.
这篇关于我可以为Kubernetes入口设置自定义端口,以监听80/443之外的端口吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!