[英]kubernetes cluster pods not able to ping pods on another node
Setup a kubernetes cluster using three vms on virtualbox. 在virtualbox上使用三个VM设置kubernetes集群。 one setup as the master and the other as worker nodes.
一种设置为主节点,另一种设置为工作节点。 Deployed pods on the cluster but the pods could not ping any pods that are on a different node but can ping pods on the same node
群集上已部署的Pod,但Pod无法ping通其他节点上的任何Pod,但可以ping同一个节点上的Pod
Kubernetes uses a different approach to internal communication. Kubernetes使用不同的方法进行内部通信。 In the basic DNS-operated network there are interchange packets between services not pods.
在基本的DNS运营网络中,服务之间存在交换数据包,而不是Pod。 Some of the operations use 'NAT'-ed network built on iptables and not low-level packed exchange.
有些操作使用基于iptables的“ NAT”网络,而不是低级打包交换。 It may be needed to use an overlay network to achieve what you need.
可能需要使用覆盖网络来实现您所需要的。
Back to your issue. 回到您的问题。 I may suggest you building services, and then try to ping each other via name using flannel or similar solution.
我可能建议您构建服务,然后尝试使用法兰绒或类似解决方案通过名称相互ping通。 You may find the foundations interesting and dive deeper in the network abstraction layer .
您可能会发现基础很有趣,并且会深入网络抽象层 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.