Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ECSのデプロイツールを試している話

Yukiyan
September 21, 2016

 ECSのデプロイツールを試している話

2016/09/21 JAWS-UG コンテナ支部 #6 #jawsug_ct
http://jawsug-container.connpass.com/event/37895/

当スライドで引用した資料のリンクを以下に全て置きました。
https://git.io/viHHI

@yukiyan_w
https://twitter.com/yukiyan_w
http://yukiyan.hatenablog.jp/

Yukiyan

September 21, 2016
Tweet

More Decks by Yukiyan

Other Decks in Programming

Transcript

  1. ɾ ɾcompose likeͳymlͰtaskΛొ࿥Ͱ͖Δ ɾservice΋ొ࿥Մೳ(CLBͱͷඥ෇͚΋ɻALB͸·ͩɻ) ɾσϓϩΠ͸ECSΫϥελΛ੾Γସ͑ΔλΠϓ(bluegreen) ɾ"EC2 Container Service(ECS)Λ؅ཧͯ͠ɺBlue-Green DeploymentΛ࣮ݱ͢ΔπʔϧΛॻ͍ͨ -

    tehepero note(ɾ Т<)”:http://bit.ly/2d1Mqfq ɾ"Amazon EC2 Container Service(ECS)ͱٔΕͨ1೥ͱίϯςφܳਓͷདྷ೥ʹ͍ͭͯ - tehepero note(ɾТ<)”:http:// bit.ly/2cOsGZi ɾ"Flexible Blue Green DeploymentͷεεϝʛαΠόʔΤʔδΣϯτ ެࣜΤϯδχΞϒϩά":http://amba.to/2ddJx7F
  2. ɾ"ECS Λར༻ͨ͠ΦϑϥΠϯδϣϒͷ࣮ߦ؀ڥ - ΫοΫύου։ൃऀϒϩά”:http://bit.ly/2d1TfgR ɾ"Scalable Job Queue System Built with

    Docker // Speaker Deck”:http://bit.ly/2d1TsAI ɾ"hako͕ALBʹରԠͨ͠ͷͰ࢖ͬͯΈͨ - so what”:http://bit.ly/2d1TSao ɾ"hakoͷoneshotΛ࢖͏ - so what":http://bit.ly/2d1Tmcf ɾ ɾtask͕ొ࿥Մೳ(ͨͩ͠compose likeͳymlͰ͸ͳ͍) ɾservice͕ొ࿥Մೳ(CLB΍ALBͱͷඥ෇͚΋Մೳ)
  3. ECS Cluster EC2 ECS Cluster Internal CLB EC2 EC2 ALB

    24224 24224 Dynamic Port 80 log-container.fluentd:24224 /index.html ૉৼΓͷߏ੒ public subnet private subnet
  4. ecs-cli up \ --verbose \ --keypair "yukiyan" \ --capability-iam \

    --size 1 \ --vpc "vpc-1234" \ --subnets "subnet-1234","subnet-1234" \ --security-group "sg-1234" \ --image-id "ami-12345" \ --instance-type "t2.micro"
  5. KTPOॻ͍ͯɺBXTίϚϯυͰؤுΔ FDTGPSNBUJPO͸"-#ະରԠ͕ͩɺ ผϒϥϯνͰ։ൃͯ͠Δงғؾ͸͋ͬͨɻ IBLPͩͱରԠࡁΈ ཁௐࠪ ɻ ɾ"BlueGreen Deployment for ALB

    by stormcat24 · Pull Request #98 · stormcat24/ecs- formation”:https://git.io/viSXF ɾ"hako͕ALBʹରԠͨ͠ͷͰ࢖ͬͯΈͨ - so what”:http://bit.ly/2d1TSao BQQTFSWJDFͷ্ཱͪ͛ͱ"-#ͱͷؔ࿈෇͚
  6. ecs-deploy \ -c yukiyan-cluster \ -n app \ -i yukiyan/app:latest

    \ -D 1 \ # desired count -m 100 \ # minumumHealthyPercent -M 200 # maximumPercent