简体   繁体   English

Docker容器IP在Kubernetes集群中无法通信

[英]Docker container IP's not communicating in kubernetes cluster

I have a kubenetes cluster running successfully. 我有一个成功运行的kubenetes集群。 I have tried bringing applications in the cluster like a simple nginx. 我尝试将应用程序像简单的nginx一样引入集群。 I have a setup of master-minion and a minion node. 我有一个master-minion和一个minion节点的设置。

The problem here is that I'm able to launch applications from the master-minion node but when I bring up applications in another minion it gives me an error as no route to host. 这里的问题是我能够从master-minion节点启动应用程序,但是当我在另一个minion中启动应用程序时,由于没有通往主机的路由,这给了我一个错误。

After some exploration I saw that container ip is not pingable from the master-minion node. 经过一番探索,我发现容器ip无法从master-minion节点ping通。

Can someone point out as to what to do to fix this communication between containers in the cluster? 有人可以指出如何解决群集中容器之间的这种通信吗?

Have you set up networking for kubernetes? 您是否已为kubernetes设置网络? you can refer to: http://kubernetes.io/v1.0/docs/admin/networking.html 您可以参考: http : //kubernetes.io/v1.0/docs/admin/networking.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 容器在 docker 中有效,但在 Kubernetes 集群中无效 - Container works in docker but not in Kubernetes cluster 从 docker 容器内访问 Kubernetes 集群 - Access to a kubernetes cluster from inside a docker container VM中Kubernetes集群和Docker容器之间的路由 - Routing between Kubernetes cluster and Docker container in the VM Kubernetes集群,Docker Container暂停并在一秒钟内退出 - Kubernetes cluster, Docker Container pause and exit in a second 从 docker 容器访问默认命名空间中具有集群 IP 的 k8s 服务 - Accessing a k8s service with cluster IP in default namespace from a docker container Kubernetes Pod中的Docker容器无法通信 - Docker Containers in Kubernetes pod not communicating 更改 Kubernetes docker-for-desktop 集群网络ip - Change Kubernetes docker-for-desktop cluster network ip 如何在 Docker 桌面 Kubernetes 集群上找到主 IP? - How do I find the master IP on Docker Desktop Kubernetes Cluster? 无法在kubernetes集群中的docker容器中登录iscsi启动器 - Unable to login in iscsi initiator in docker container within a kubernetes cluster 使用Stackdriver在Kubernetes集群中使用日志自定义Docker容器 - Custom docker container in Kubernetes cluster with log using Stackdriver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM