繁体   English   中英

容器引擎上来自Kubernetes的Google Compute Engine VM的DNS和路由

[英]DNS & Routing for Google Compute Engine VMs from Kubernetes on Container Engine

我的kubernetes Pod都能够解析更广泛的Internet上的主机名和ping服务器,但是它们对于在Google Compute Engine上相同区域和区域中运行的VM都无法执行。

如何告诉kubernetes / docker允许到Google Compute Engine环境(我们的子网为10.240.0.0)的出站流量,并使用10.240.0.1解析该子网的主机名?

我这很愚蠢。

我们的Google容器集群已配置为在Google Developer Console中使用自定义网络,而我们的Google Compute Engine虚拟机均已配置为使用默认网络。

这就解释了这一点。 确保所有机器都在同一网络上,然后一切正常运行。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM