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 for EFS
Search
nnao45
January 23, 2020
Technology
4
1.5k
EKS for EFS
nnao45
January 23, 2020
Tweet
Share
More Decks by nnao45
See All by nnao45
MPI Performance Evaluation of Raspberry Pi4 Cluster with Android OS
nnao45
2
170
datalake-party-for-aws-20201118
nnao45
0
250
はじめてのNetwork Service Mesh
nnao45
4
2.2k
まだ大きくない僕たちに必要なCLoud Nativeを求めて
nnao45
8
1.2k
Firebase, Firestore Find mBaaS
nnao45
3
1.1k
what happens when k8s journy
nnao45
16
9k
Make App, Using with Study Group
nnao45
3
610
Chatops, AWS, And Ansible
nnao45
2
1k
Ansible container in the kubernetes
nnao45
5
1.6k
Other Decks in Technology
See All in Technology
Azure Developer CLI と Azure Deployment Environment / Azure Developer CLI and Azure Deployment Environment
nnstt1
1
130
AIのための オンボーディングドキュメントを整備する - hirotea
hirotea
9
2.3k
Eight Engineering Unit 紹介資料
sansan33
PRO
0
3.2k
ソフトウェアは捨てやすく作ろう/Let's make software easy to discard
sanogemaru
10
5.8k
KMP導⼊において、マネジャーとして考えた事
sansantech
PRO
1
210
Introduction to Bill One Development Engineer
sansan33
PRO
0
240
大手企業のAIツール導入の壁を越えて:サイバーエージェントのCursor活用戦略
gunta
18
3.8k
AIとSREの未来 / AI and SRE
ymotongpoo
2
1.2k
積み上げられた技術資産と向き合いながら、プロダクトの信頼性をどう守るか
plaidtech
PRO
0
910
面接を通過するためにやってて良かったこと3選
sansantech
PRO
0
130
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
24k
テストを実施する前に考えるべきテストの話 / Thinking About Testing Before You Test
nihonbuson
PRO
14
2k
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
46
14k
Building an army of robots
kneath
306
45k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.3k
Statistics for Hackers
jakevdp
799
220k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Scaling GitHub
holman
459
140k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
460
Why Our Code Smells
bkeepers
PRO
336
57k
It's Worth the Effort
3n
184
28k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
123
52k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
1
79
Product Roadmaps are Hard
iamctodd
PRO
53
11k
Transcript
EKS FOR EFS CyberAgent, Inc. @nnao45
@nnao45 株式会社サイバーエージェント サーバサイドとインフラ屋さん 広告を作ってると思ったら、 ガチャガチャを作っていた人 * * * 勉強会の名札を作るScalaスクリプト書いたよ *
でももう水ロトム禁止ポケでいいだろ * 分散アーキテクチャのSagaってやつを最近知った https://github.com/nnao45 AI事業部リテールテックDiv所属 * Connpassからスクレイピングして * ポケモン剣盾の追加コンテンツ楽しみですね。 →https://github.com/cndjp/godfather
͓͠ͳ͕͖ 1.EFS is Կʁ 2.EKSͱEFS 3.EFS Provisionerͱͦͷத 4.·ͱΊ
1. EFS IS Կʁ
1. EFS is Կʁ AWSͰ͑ΔNFS EBS͕ϒϩοΫετϨʔδʹର ͠ɺEFSϑΝΠϧγεςϜʹΑ Γ1ݸҎ্ͷϊʔυͱڞ༗ ෳͷAZؒͰҰ؏ੑͷ͋Δσʔ λͷڞ༗͕Մೳ
1. EFS is Կʁ EC2 EC2 AZ A AZ B
EBS EBS /var/log/xxx /var/log/yyy
1. EFS is Կʁ EC2 EC2 AZ A AZ B
EBS EBS /var/log/xxx /var/log/yyy
1. EFS is Կʁ EC2 EC2 AZ A AZ B
EFS /var/log/ZZZ
1. EFS is Կʁ
2. EKSͱEFS
2. EKS ͱ EFS ʁ
2. EKS ͱ EFS EKS NODE EKS NODE AZ A
AZ B CLUSTER X
2. EKS ͱ EFS WEB APP SAY… 平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文
平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 VMからコンテナとかすると大概こうなってるでしょ
2. EKS ͱ EFS WEB APP SAY… 平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文
平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 平文平文平文平文平文平文平 文平文平文平文平文平文平文 ???「あ、そういえば◦◦の値を欲しいってお客さんが・・・」
2. EKS ͱ EFS WEB APP SAY… 平文平文 平文平文 平文平文
平文平文 DWH 正規表現は人類には早い
2. EKS ͱ EFS WEB APP SAY… JSON{…} DWH 平文平文平
文平文平文平 文平文平文平 文平文平文平 S3 応急処置感。
2. EKS ͱ EFS EKS NODE EKS NODE AZ A
AZ B CLUSTER X PV(EBS)
2. EKS ͱ EFS EKS NODE EKS NODE CLUSTER X
AZ A AZ B PV(EBS)
2. EKS ͱ EFS EKS NODE EKS NODE CLUSTER X
AZ A AZ B PV(EBS)
2. EKS ͱ EFS EKS NODE EKS NODE AZ A
AZ B CLUSTER X PV(EFS) EFSͷ࣮ମ
2. EKS ͱ EFS EKS NODE EKS NODE AZ A
AZ B CLUSTER X PV(EFS) EFSͷ࣮ମ
2. EKS ͱ EFS EKS NODE EKS NODE AZ A
AZ B CLUSTER X PV(EFS) EFSͷ࣮ମ
3. EFS PROVISIONER ͱͦͷத
3.EKS PROVISONERͱͦͷத https://github.com/helm/charts/tree/master/stable/efs-provisioner
3.EKS PROVISONERͱͦͷத https://github.com/helm/charts/tree/master/stable/efs-provisioner $ helm install stable/efs-provisioner --set efsProvisioner.efsFileSystemId=fs-12345678 --set
efsProvisioner.awsRegion=us-east-2 EFS Provioner — Deployment EFS —Storage Class …etc
3.EKS PROVISONERͱͦͷத MOUNTED POD EFS PROVISIONER EFS Server EFS PROVISIONERはDEPLOYMENTです。
3.EKS PROVISONERͱͦͷத MOUNTED POD EFS PROVISIONER EFS Server File System
/fs/ File System /pfs/ NFS EFS PROVISIONERがマウントするのは「ファイルシステム」。
3.EKS PROVISONERͱͦͷத MOUNTED POD EFS PROVISIONER EFS Server File System
/fs/ File System /pfs/ File System /var/log/ PV /pv-XXXX/hey NFS pv-XXXXのXXXXはUUIDですよん
3.EKS PROVISONERͱͦͷத MOUNTED POD EFS PROVISIONER EFS Server File System
/fs/ File System /pfs/ File System /var/log/ $ ls /pfs/ pv-XXXX PV /pv-XXXX/hey NFS pv配下のpv-XXXXをEFS PROVISIONERが作って、PODに配るイメージ
3.EKS PROVISONERͱͦͷத MOUNTED POD EFS PROVISIONER EFS Server File System
/fs/ File System /pfs/ File System /var/log/ $ ls /pfs/pv-XXXX hey $ ls /var/log/ hey PV /pv-XXXX/hey NFS へいへい
4.·ͱΊ ୯ҰAZͩͱ࣮ݱग़དྷͳ͍ӬଓԽΛ࣮ݱ efs-provisionerΛ͏ͱ͖ެࣜhelmνϟʔ τ͔Β σΟεΫIOͳͲؾΛ͚ͭͯɺϩάͷ߹ͬ ͺΓετϦʔϜͱͯ͠ӬଓԽ͠ͳ͍ํ͕ͬͺ Γ͍͍͚Ͳɺ࠷ऴखஈͱͯ͠Ͳ͏ͧ
Bye