[英]How to setup Docker Overlay networks with hosts in different public networks or regions?
I have basic understanding of VXLAN and overlay.networks in general.我对 VXLAN 和 overlay.networks 有基本的了解。 Docker overlay uses VXLAN under the hood to enable multi-host containers to talk among themselves.
Docker overlay 在底层使用 VXLAN 使多主机容器能够相互通信。
However, what if these multi host containers are located in different public.networks eg EC2 instances across different AWS regions and hence different public IP address.networks.但是,如果这些多主机容器位于不同的 public.networks 中,例如跨不同 AWS 区域的 EC2 实例,因此会有不同的 public IP address.networks。 An EC2 instance will have private addresses within its own NAT AWS public address and so how will the docker daemon in the other EC2 contact it.
EC2 实例将在其自己的 NAT AWS 公共地址中拥有私有地址,因此其他 EC2 中的 docker 守护程序将如何与其联系。 Is this even possible?(of course not recommended)
这甚至可能吗?(当然不推荐)
Maybe AWS has some workarounds but is Docker overlay.networking solution across different public.networks possible in general?也许 AWS 有一些解决方法,但 Docker 跨不同 public.networks 的 overlay.networking 解决方案通常可能吗? If yes, how do we do that?
如果是,我们该怎么做?
If your nodes are on different VPCs in different regions, you could have them reach each other using VPC peering如果您的节点位于不同区域的不同 VPC 上,您可以使用VPC 对等互连让它们相互访问
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.