简体   繁体   English

如何使用不同 public.networks 或区域中的主机设置 Docker Overlay.networks?

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

相关问题 Azure 存储防火墙和虚拟网络 - 如何防止未经授权的访问 - Azure Storage Firewall and Virtual Networks - how to prevent unauthorized access 通过 Docker 部署到 AWS ECS Compose ECS 插件具有不稳定的网络和容器 - Deploying to AWS ECS via Docker Compose ECS Plugin has unstable networks & containers 如何在不同区域的数据集之间移动数据? - how to move data between datasets in different regions? Terraform compute.networks.create 的 GCP 错误 - Terraform Error with GCP for compute.networks.create 如何在 CloudBuild 上设置 Docker (DinD) 中的 Docker? - How to setup Docker in Docker (DinD) on CloudBuild? Google Cloud 架构 - 多个区域的项目设置 - Google Cloud Architecture - Project setup for multiple regions 如何从不同的 AWS 区域为我的胶水作业检索数据? - How to retrieve data from different AWS regions for my glue job? selenium 自动签名到谷歌云抛出网络错误 - selenium automation signing to google cloud throws networks error 亚马逊云与其CDN(Content Distribution Networks)的区别 - Difference between Amazon cloud and its CDN(Content Distribution Networks) 如何使用内部 IP 在同一 VPC 但不同的 su.net(区域)内通信 2 个实例 - how to communicate 2 instances inside the same VPC but different subnets (regions) using internal IP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM