使用 AWS ECS 服务部署微服务
Microservice deployment using AWS ECS service
我正在尝试使用 spring 引导创建微服务并尝试使用 AWS ECS 云服务进行部署。我对使用 ECS 部署有疑问。在 ECS 中有一个 EC2 启动类型的工具。
这里我的疑问是,当我使用ECS EC2启动类型时,我可以选择自己的Ubuntu机器实例吗?我需要知道 ECS 是否提供使用我自己的 Ubuntu 机器启动的规定?
是的,您可以使用自己的 Ubuntu AMI,但这需要一些工作。这是 requirements:
A modern Linux distribution running at least version 3.10 of the Linux kernel.
The Amazon ECS container agent (preferably the latest version). For more information, see Amazon ECS Container Agent.
A Docker daemon running at least version 1.5.0, and any Docker runtime dependencies. For more information, see Check runtime dependencies in the Docker documentation.
因此,除了安装 Docker,您还需要安装和配置 ECS 代理。您会找到说明 here。请参阅 'To install the Amazon ECS container agent on a non-Amazon Linux EC2 instance'
部分
构建 AMI 后,您只需 create your cluster and then launch the instances 即可。
我正在尝试使用 spring 引导创建微服务并尝试使用 AWS ECS 云服务进行部署。我对使用 ECS 部署有疑问。在 ECS 中有一个 EC2 启动类型的工具。
这里我的疑问是,当我使用ECS EC2启动类型时,我可以选择自己的Ubuntu机器实例吗?我需要知道 ECS 是否提供使用我自己的 Ubuntu 机器启动的规定?
是的,您可以使用自己的 Ubuntu AMI,但这需要一些工作。这是 requirements:
A modern Linux distribution running at least version 3.10 of the Linux kernel.
The Amazon ECS container agent (preferably the latest version). For more information, see Amazon ECS Container Agent.
A Docker daemon running at least version 1.5.0, and any Docker runtime dependencies. For more information, see Check runtime dependencies in the Docker documentation.
因此,除了安装 Docker,您还需要安装和配置 ECS 代理。您会找到说明 here。请参阅 'To install the Amazon ECS container agent on a non-Amazon Linux EC2 instance'
部分构建 AMI 后,您只需 create your cluster and then launch the instances 即可。