Kubernetes服务使用的端口0是什么? [英] What is port 0 used for in Kubernetes services?
本文介绍了Kubernetes服务使用的端口0是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
创建服务时,我会在内部端点列表中看到一个类似于 myservice.sandbox-cluster:0 TCP
的条目以及我明确打开的端口.端口0条目是做什么用的?
When creating a service I see in the list of internal endpoints an entry the looks like myservice.sandbox-cluster:0 TCP
along with the ports I explicitly opened. What is the port 0 entry for?
推荐答案
如果使用的是GCE负载均衡器,则可能会创建端口0
.端口0
通常表示使用任何随机的免费端口" .
If you are using the GCE Load Balancer, port 0
may be created. port 0
usually means "use any random free port".
这是 GitHub问题.此处是更多信息.与此相关的电子邮件主题是此处.
Here is the GitHub issue. Here is more info. Email thread about this is here.
这篇关于Kubernetes服务使用的端口0是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文