简体   繁体   English

kubernetes集群Pod无法在另一个节点上ping Pod

[英]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.

相关问题 如何在Kubernetes集群上获取所有正在运行的POD - How to get all running PODs on Kubernetes cluster 如何解析 kubernetes 集群中 pod 之间的主机名? - How to resolve the hostname between the pods in the kubernetes cluster? Kube.netes 集群 pod 作为 Jenkins 构建代理 - Kubernetes cluster pods as Jenkins Build Agents 有没有办法在 Kubernetes 集群上创建相互依赖的 pod? - Is there a way to create interdependent pods on Kubernetes cluster? Kubernetes pod 无法更新基于 debian 的存储库 - Kubernetes pods not able to update repositories of debian based 单节点 Kubernetes 集群 - 不同 pod 中的容器无法相互通信 - Single node Kubernetes cluster - Containers in different pods can't communicate with each other Kubernetes - 无法从 Kubernetes 集群内部连接到 Redis Pod - Kubernetes - Unable to connect to Redis Pods from inside Kubernetes Cluster Kubernetes V1.11.0 HA群集CoreDNS PODS未出现 - Kubernetes V1.11.0 HA cluster CoreDNS PODS not coming up 无法在 kubernetes 集群上运行 Pod (Digital Ocean) ErrImagePull - Unable to run the pods on the kubernetes cluster (Digital Ocean) ErrImagePull Kubernetes:使用 kubeadm 构建集群后,节点/Pod 未使用 kubectl 显示 - Kubernetes: Nodes/Pods not showing with kubectl after building cluster with kubeadm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM