每个Docker映像是否都需要拥有自己的群集,任务定义,目标组和from应用程序互联网面向负载平衡器的路径?

发布于 2025-01-21 21:29:35 字数 555 浏览 0 评论 0 原文

我有以下项目结构:

服务组A:

  • reactjs/ webpack a
  • Express App a1
  • Express App A2
  • Express App A3

Service B:

  • reactjs/ webpack B
  • Express B1 Express B1
  • Express B2 Service b2

Service b2 Service c:

  • React JS/ WebPack C
  • Express C Express App C1
  • Express App C2

主服务:

  • React JS/ WebPack Main

每个项目都有自己的Docker映像。

我如何制作AWS ECR中的Docker图像 每个服务是否需要从1个面向Internet的负载平衡器转发自己的群集,任务定义,目标组?

I have the following project structure :

Service Group A :

  • ReactJs / Webpack A
  • Express App A1
  • Express App A2
  • Express App A3

Service group B :

  • ReactJs/ Webpack B
  • Express App B1
  • Express App B2

Service group C :

  • React Js/Webpack C
  • Express App C1
  • Express App C2

Main Service :

  • React Js/ Webpack Main

Each project has their own docker image.

How do I make group of docker image in AWS ECR
Does each service needs to have their own cluster,task definition, target group, forwarded from 1 internet-facing load balancer ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情定在深秋 2025-01-28 21:29:35

如果使用ECS,则可以在同一任务定义中定义多个容器,并且它们将作为任务一起启动。然后,如果需要,您可以使用ECS服务进行扩展。

例如:
JSON ContainerDefinition键定义了多个容器。

  • 一个群集可以启动多个任务
  • 一个任务定义可以启动多个容器
  • 一个负载平衡器可以将流量服务于多个ECS服务(1 Service = 1目标组)。

If you use ECS you can define multiple containers in the same task definition and they will be launched together as tasks. Then you scale them with an ECS service if needed.

Check this gist for example : https://gist.github.com/anosulchik/29312f8b30fa6f88b9c997281d32d822
The JSON containerDefinitions key defines multiple container.

  • One cluster can launch multiple tasks
  • One task definition can launch multiple containers
  • One load balancer can serve traffic to multiple ECS service (1 service = 1 target group).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文