简体   繁体   English

注册容器实例 0 AWS ECS

[英]Registered container instances 0 AWS ECS

I created a cluster on Amazon ECS.我在 Amazon ECS 上创建了一个集群。 It was successful but my Registered container instances is zero.它成功了,但我的注册容器实例为零。 I can't create a tasks because my cluster doesn't a container have an instance.我无法创建任务,因为我的集群没有容器有实例。

What to do?该怎么办? Hope you can help me.希望您能够帮助我。 Thank you.谢谢你。

在此处输入图像描述

在此处输入图像描述

EC2 instances won't be visible out of the box in the ECS cluster just because they exist in your account. EC2 实例在 ECS 集群中开箱即用是不可见的,因为它们存在于您的账户中。 They need to be made join the cluster.他们需要加入集群。 First you'd need to use an ECS-optimized AMI (unless you want to build one on your own which is possible but..) and then you'd need to customize the launch to tell it which cluster to join.首先,您需要使用 ECS 优化的 AMI(除非您想自己构建一个这是可能的,但是..),然后您需要自定义启动以告诉它要加入哪个集群。 See this doc page .请参阅此文档页面

You have 3 options:您有 3 个选项:

  • re-launch one (or more) new EC2 instances following the doc above按照上面的文档重新启动一个(或多个)新的 EC2 实例
  • re provision a cluster using the wizard and select that you want to deploy EC2 instances as well (this wizard will just to everything for you).使用您想要部署 EC2 实例的向导和 select 重新配置集群(此向导将为您提供一切)。 Since you have an empty cluster you probably selected to deploy a cluster with no instances in the wizard由于您有一个空集群,您可能选择在向导中部署一个没有实例的集群
  • [ best ] re-launch your task using the Fargate launch type. [最佳] 使用 Fargate 启动类型重新启动您的任务。 Fargate is an AWS managed engine that allows you to launch containers/tasks without having customer provisioned infrastructure (ie EC2 instances). Fargate 是一个 AWS 托管引擎,它允许您在没有客户预置基础设施(即 EC2 实例)的情况下启动容器/任务。

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

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