Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
EKS を使ってる人から見た App Runner
Search
shogomuranushi
June 09, 2021
7
2.4k
EKS を使ってる人から見た App Runner
shogomuranushi
June 09, 2021
Tweet
Share
More Decks by shogomuranushi
See All by shogomuranushi
ノーコード x ChatBotで遊んでたら ReActを実装しそうだった話
shogomuranushi
0
1.2k
ChatGPT関連情報の追い方、個人・業務での使い方、サービスへの組み込み方、 ABEJAでの取り組み4例、ここ2週間のトピックなど行けるところまで
shogomuranushi
5
1.9k
FPが教える iDeCo のすごさ
shogomuranushi
0
130
AWS Control Tower導入してハッピーになりました
shogomuranushi
0
230
Suggested Topicの質問に可能な限り答えてみた
shogomuranushi
0
1.1k
顧客のアプリケーションコードが動くマルチテナント環境における課題とEKSにたどり着くまで
shogomuranushi
0
1.6k
ちょいテク100本ノック。できるまで帰しません 。今から使えるちょいテク集
shogomuranushi
1
2.7k
after of Infrastructure-as-Code-is-very-tired
shogomuranushi
16
3.3k
what is Cloud Run?
shogomuranushi
2
110
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Optimizing for Happiness
mojombo
376
69k
Become a Pro
speakerdeck
PRO
24
5k
It's Worth the Effort
3n
183
27k
Designing on Purpose - Digital PM Summit 2013
jponch
115
6.9k
How STYLIGHT went responsive
nonsquared
95
5.2k
RailsConf 2023
tenderlove
29
880
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
32
1.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.6k
Faster Mobile Websites
deanohume
304
30k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
Transcript
[Online] nakanoshima.dev#1 7 Let's start App Runner ! 2021.06.0 9
ABEJA, Inc . Shogo Muranushi EKS ΛͬͯΔਓ͔Βݟͨ App Runner
@rwle1212 2 ໊લ ɿ ଜओ ޛʢΉΒ͵͠ ͠ΐ͏͝ʣ ձࣾ ɿ ABEJA,
Inc . ۀ ɿΠϯϑϥΤϯδχΞ -> ϓϩμΫτΦʔφʔ -> SRE
@rwle1212 3
4 EKSͬͯΔਓ͔ΒݟͨApp Runner
@rwle1212 5 App RunnerͬͯͲΜͳͷʁ ࠓͷΠϕϯτͰଞͷਓ͕հͯ͘͠Ε͍ͯΔͱ৴ͯ͡Կॻ͔ͳ͍
@rwle1212 6 EKSͬͯԿʁ ʢ֓ཁʣ • KubernetsͷΫϥελʔΛϚωʔδυͯ͘͠ΕΔͭ • ਖ਼໊ࣜশAmazon Elastic Kubernetes
Servic e • Kubernetesͱ • એݴతͳߏཧͱࣗಈԽΛଅਐ͠ɺίϯςφԽ͞Εͨϫʔ ΫϩʔυαʔϏεΛཧ͢ΔͨΊͷɺϙʔλϒϧͰ֦ுੑ ͷ͋ΔΦʔϓϯιʔεͷϓϥοτϑΥʔϜ • ίϯςφཧͷσϑΝΫτελϯμʔυ
7 EKSΑΓApp Runner͕༏Ε͍ͯΔͱ͜Ζ <
@rwle1212 8 ϏϧυɾσϓϩΠͷࡉ͔͍͜ͱΛߟ͑Δඞཁͳ͍ ʢͪΖΜ৭ʑ͋Δ͚Ͳʣ • EKSͷ߹ • ίϯςφͷϏϧυɺίϯςφΠϝʔδͷϦϙδτϦɺΠϝʔδͷ σϓϩΠํ๏ͳͲߟ͑Δඞཁ͋Δ •
ߏங͠·ָ͚͑ͩͲɺ͍ॳΊͨ࣌ʹݕ౼ɺߏஙͷඞཁ͋Γ • CircleCI? GitHub Actions? GitOps?
@rwle1212 9 ΫϥελʔͷΞοϓάϨʔυෆཁ • EKSͷ߹ • 3ϲ݄αΠΫϧҐͰΫϥελʔͷΞοϓάϨʔυ͕ඞཁ • OSSͷ֦ுػೳͨ͘͞Μ͏ͱͳ͓େมʢͳͷͰγϯϓϧʹ ͍·͠ΐ͏ʣ
• Istio? Calico? CRD?
@rwle1212 10 ϊʔυͷཧ͕ෆཁ ʢಛʹηΩϡϦςΟ໘ָ͕ʣ • App Runnerͷ߹ • OSϨϕϧͷηΩϡϦςΟύονͷཧ͕ෆཁ •
ର֎తͳνΣοΫγʔτࠪͱ͔௨࣌͢ʹʮ ΠϧεରࡦιϑτʁʯʮIDSͱ͔ೖΕͯ·͢ ͔ʁʯͱ͔ʮʢOSϨϕϧʣશ෦AWS͞Μ͕ͬ ͯ·͢ʂٿنͰʂʯͰOK :shirankedo : • AWS Systems Managerͷػೳ܈ݟͨ࣌ʹ಄͕௧͘ͳͬͨͷͰɺͦΕΒΛ֮͑ͳ͘ ͯྑ͍ͳΜͯʂ
@rwle1212 11 https://dev.classmethod.jp/articles/all-ssm-capabilities-2021/
12 ϊʔυ͕ϑϧϚωʔδυͳͷྑ͍ΑͶ
13 App RunnerΑΓEKS͕༏Ε͍ͯΔͱ͜Ζ <
@rwle1212 14 ৭ʑ͋Δ͚Ͳग़͔ͨͬͳͷͰ ൺֱ͢ΔͷՄѩ • VPCೖΕͳ͍ɻRDSͱͲ͏ܨ͛Δʁ • ϥϯλΠϜগͳ͍ʢECRͷํ͑ԿͰͰ͖Δ͚ͲɺͦΕͩͱϏ ϧυָʹͳΒͳ͍ʣ •
GPUͱ͔͑ͳ͍ɻCPU/MEM͕ݶք͋Δ • ΧφϦΞϦϦʔεͰ͖ͳ͍? ΈΜͳ͕ͨ͘͞ΜͬͯϑΟʔυόοΫ͢Εվળ͞ΕΔ
15 Ͱ͞ɺଞʹίϯςφαʔϏε ͍ͬͺ͍͋ΔΑͶʁ
16 ͍ɻ͍ͬͺ͍͋Γ·͢ɻ
@rwle1212 17 AWSͷίϯςφαʔϏε • ECSܥ: ECS, Fargate, ECS Anywher e
• EKSܥ: EKS, Fargate, EKS Anywhere (coming 2021 ) • Lightsai l • Elastic Beanstalk
18 ԡ͓͑ͯ͘͞ͷҎԼ3 EKS / EC S Fargat e App Runnner
@rwle1212 19 EKS, ECS / Fargate / App Runner
@rwle1212 20 Ͳ͏͍͏࣌ʹͲΕΛબ͢Δͷ͔ • ·ָͣͳͷ͔Βཁ݅Λຬ͔ͨ͢ߟ͑Δ • ୈҰީิ: App Runne r
• ୈೋީิ: Fargate ( ECS or EKS ) • ୈࡾީิ: ECS or EKS
@rwle1212 21 App RunnerΛબ͢Δ࣌ • Lambda͕ཁ݅ʹ߹Θͳ͍ • ͨͩͷγϯϓϧͳWebΞϓϦέʔγϣϯ • DBDynamoD
B • ݴޠPytho n • GolangΛσϓϩΠ͍ͨ͠ʢECRϞʔυ͏ʣ
@rwle1212 22 FargateΛબ͢Δ࣌ • DBRDBͰRDS͍͍ͨ • EFSͱ͔ͷϑΝΠϧγεςϜϚϯτ͍ͨ͠ • ڧΊͷCPU/MEM͍͍ͨ •
ߟ͑ͯΈ͚ͨͲҙ֎ͱগͳ͔ͬͨ
@rwle1212 23 EKS / ECS Λબ͢Δ࣌ • ෳͷΞϓϦέʔγϣϯΛҰݩͰཧ͍ͨ͠ • Service
Discovery, Daemonset, etc. . • ϊʔυʢΠϯελϯελΠϓʣΛ੍ݶͳ͍͍ͨ͘ • ϋΠύϑΥʔϚϯεΠϯελϯε • ಛघΠϯελϯεʢGPU, ARM, AMD, Mac, etc.. ʣ • KubernetesΤίγεςϜͷOSSΛϑϧ׆༻͍ͨ͠ • ࠓճ App Runner vs Any Container Service ͳͷͰफڭઓ૪ʢECS vs EKSʣͷׂѪ͠·͢
@rwle1212 24 Ͳ͏͍͏࣌ʹͲΕΛબ͢Δͷ͔ ʢ࠶ܝࡌʣ • ·ָͣͳͷ͔Βཁ݅Λຬ͔ͨ͢ߟ͑Δ • ୈҰީิ: App Runne
r • ୈೋީิ: Fargate ( ECS or EKS ) • ୈࡾީิ: ECS or EKS
25 ଞΫϥυίϯςφαʔϏε͋ΔΑͶʁ ʢGCP͚ͩհʣ
@rwle1212 26 GK E GKE Autopilo t Cloud Run 26
Google Cloud EKS૬ɻEKSΑΓָɻEKSΑΓࣗ༝͍ɻ ָΛऔΔ͔ɺࣗ༝ΛऔΔ͔ΈɻݸਓతʹEKSͷํ͕͖ʹ࡞ΕΔ͔Β͖ Fargate EKSʹ͍ۙɻΫϥελʔϊʔυͷཧෆཁɻ Fargate EKSͱͷҧ͍ɺ΄ͱΜͲૉͷঢ়ଶͰ͑ΔɻFargate EKS৭ʑ੍ݶ͋ ΔɻݸਓతʹΫϥελϊʔυཧͨ͘͠ͳ͍͚Ͳૉͷࣗ༝͕ཉ͍͠ͷͰɺ KubernetesΫϥελͱܾͯ͠ఆ൛ɻ Fargate / App Runnerʹ͍͚ۙͲɺৗ࣌ىಈܕͰͳ͘αʔόϨεతͳΠϕϯτ υϦϒϯܕɻ ΠϕϯτυϦϒϯʢFaaSʣͷίετମܥ͕ັྗͰίϯςφͷࣗ༝Λ݉Ͷඋ͑ͨ
@rwle1212 27 ֤ίϯςφαʔϏεͷҐஔ͚ γϯϓϧ ֦ுੑ͍ ෳࡶ ֦ுੑߴ͍ &,4 (,& &$4
'BSHBUF (,&"VUPQJMPU "QQ3VOOFS $MPVE3VO
@rwle1212 28 ֤ίϯςφαʔϏεͷҐஔ͚ γϯϓϧ ֦ுੑ͍ ෳࡶ ֦ுੑߴ͍ &,4 (,& &$4
'BSHBUF (,&"VUPQJMPU "QQ3VOOFS $MPVE3VO ΓKubernetesܥOSSଟ͍ͷͰ৭ʑ֦ுͰ͖Δ
@rwle1212 29 ֤ίϯςφαʔϏεͷҐஔ͚ γϯϓϧ ֦ுੑ͍ ෳࡶ ֦ுੑߴ͍ &,4 (,& &$4
'BSHBUF (,&"VUPQJMPU "QQ3VOOFS $MPVE3VO ϊʔυཧෆཁͳͷ
@rwle1212 30 ֤ίϯςφαʔϏεͷҐஔ͚ γϯϓϧ ֦ுੑ͍ ෳࡶ ֦ுੑߴ͍ &,4 (,& &$4
'BSHBUF (,&"VUPQJMPU "QQ3VOOFS $MPVE3VO Ͱ͖Δ͜ͱ੍͕ݶ͞Ε͍ͯΔ
31 ͕ཉ͍͠ͷ
@rwle1212 32 ͕ཉ͍͠ͷ • ؆୯ͳͷΑΓɺγϯϓϧͳͷ͕ཉ͍͠ • ϥούʔαʔϏε݁ہ৭ʑͳαʔϏεΛ֮͑ͳ͍ͱ͍͚ͳ͍ ෳࡶͳϞϊආ͚͍ͨ • App
Runnner Έ͍ͨʹ૯߹తʹɺ͋·Γҙࣝ͢Δ͜ͱͳ͘উखʹͬ ͯ͘ΕΔγϯϓϧͳͷ͕͍͍ • ʮυϦϧΛങ͍ʹདྷͨਓ͕ཉ͍͠ͷυϦϧͰͳ݀͘Ͱ͋Δʯ
33 ͍͞͝ʹ
34
35 ͭ·Γ͜͏͍͏͜ͱͰ͢
36 AppӉRunner
37 ͋Γ͕ͱ͏͍͟͝·ͨ͠