Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
240
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.4k
what is Cloud Run?
shogomuranushi
2
110
Featured
See All Featured
Done Done
chrislema
181
16k
Documentation Writing (for coders)
carmenintech
65
4.5k
Bash Introduction
62gerente
608
210k
Docker and Python
trallard
40
3.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Code Review Best Practice
trishagee
64
17k
What's in a price? How to price your products and services
michaelherold
243
12k
Scaling GitHub
holman
458
140k
It's Worth the Effort
3n
183
27k
Unsuck your backbone
ammeep
669
57k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
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 ͋Γ͕ͱ͏͍͟͝·ͨ͠