使用AWS ECS服务进行微服务部署 [英] Microservice deployment using AWS ECS service
问题描述
我正在尝试使用Spring Boot创建微服务,并尝试使用AWS ECS云服务进行部署.我对使用ECS进行部署有疑问. ECS中具有EC2启动类型的功能.
我的疑问是,当我使用ECS EC2启动类型时,可以选择自己的Ubuntu计算机实例吗?我需要知道ECS是否提供了在我自己的Ubuntu计算机上启动的准备?
是的,您可以使用自己的Ubuntu AMI,但这需要一点工作.这是要求:
运行至少Linux内核3.10版的现代Linux发行版.
Amazon ECS容器代理(最好是最新版本).有关更多信息,请参阅Amazon ECS容器代理.
至少运行1.5.0版本以及所有Docker运行时依赖项的Docker守护程序.有关更多信息,请参阅Docker文档中的检查运行时依赖项.
因此,除了安装Docker外,您还需要o安装和配置ECS代理.您可以在此处找到说明.请参阅在非Amazon Linux EC2实例上安装Amazon ECS容器代理"一节
一旦构建了AMI,您就可以创建集群,然后将实例启动到其中./p>
I am trying to creating a microservice using spring boot and trying to deploy using AWS ECS cloud service. I Have doubts in deployment using ECS. In ECS there is a facility of EC2 launch type.
Here my doubt is that, when I am using ECS EC2 launch type, can I choose my own Ubuntu machine instances? I need to know whether the ECS provide provision to launch with my own Ubuntu machine?
Yes, you can use your own Ubuntu AMI, but it requires a little bit of work. Here are the 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.
So, apart from installing Docker, you need o install and configure the ECS Agent. You will find the instructions here. See section 'To install the Amazon ECS container agent on a non-Amazon Linux EC2 instance'
Once you have your AMI built, you just create your cluster and then launch the instances into it.
这篇关于使用AWS ECS服务进行微服务部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!