我可以为Kubernetes入口设置自定义端口,以监听80/443之外的端口吗? [英] Can I set custom ports for a Kubernetes ingress to listen on besides 80 / 443?

查看:96
本文介绍了我可以为Kubernetes入口设置自定义端口,以监听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屋!

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