在 Fargate 中为服务选择子网

Selecting subnets for a Service in Fargate

正如我们在上图中所看到的,我可以 select 任意多个子网。这是否意味着服务中的任务是跨这两个子网创建的?

假设我有一个任务运行ning,那么它运行在哪个子网? 如果服务中有多个任务,它们是如何在这些子网之间分配的?它是由 Fargate 处理的,我们不应该担心吗?

如果我 select 一个 public 子网和一个私有子网怎么办,我猜在那种情况下会很乱。

抱歉,如果这些是菜鸟问题,我是 AWS 的新手。

Does it mean, the tasks in the service are created across these two subnets?

是的。

Suppose I have one task running, in which subnet will it run then?

随机子网。

What if I select a public subnet and a private subnet, I'm guessing it would be a mess in that case.

是的,您的任务可以同时分配给两者。