kubernetes 目标端口、端口和节点端口与通信流之间的连接是什么?

fkaflof6  于 2022-12-11  发布在  Kubernetes
关注(0)|答案(1)|浏览(132)

This is what I understood as the communication that happens within a Kubernetes cluster.
Different Containers can run within a Pod & multiple such Pods can run within a Node where a local network and hardware resources are shared within a Node. The communication point where a Pod listens on is the TargetPort . Other Pods can communicate within a Cluster using the specific Port . After a particular Deployment is exposed as a Service, the external communication (within the Localhost) occurs through the NodePort .
So, does this mean that by exposing a deployment as a Service, it is running on the specific port no on the localhost or does it always need port forwarding to be done?
And once the service sent a request through the NodePort, it is mapped to the Port in order to get into the Cluster and then to the specific Target Port so that the request can reach a specific Pod. Is this communication flow correct?
It would be helpful if anyone could confirm whether my understanding is correct or point out any mistakes in the above. Thanks in advance.

vxbzzdmp

vxbzzdmp1#

连接类似的堆栈解决方案SO1SO2SO3将给予您清楚了解目标端口、端口和节点端口之间的连接以及通信流。

相关问题