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
KubernetesとNetAppをつなぐTridentを使ったDynamic Provis...
Search
Makoto Watanabe
October 17, 2018
Technology
3
2.1k
KubernetesとNetAppをつなぐTridentを使った Dynamic Provisioning / Rancher Meet Up Tokyo #15
Rancher Meetup Tokyo #15で使用したスライドです。
質問は@makotowまで。
Makoto Watanabe
October 17, 2018
Tweet
Share
More Decks by Makoto Watanabe
See All by Makoto Watanabe
Rook EdgeFS
makotow
0
860
NoOps Meetup Tokyo #7-ContainerStorage
makotow
1
1.4k
オンプレ、クラウドに対応するKubernetesストレージの実現
makotow
6
5.5k
Data aggregation 2013
makotow
0
85
Other Decks in Technology
See All in Technology
一休.comレストランにおけるRustの活用
kymmt90
3
580
omakaseしないための.rubocop.yml のつくりかた / How to Build Your .rubocop.yml to Avoid Omakase #kaigionrails
linkers_tech
3
740
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
10分でわかるfreee エンジニア向け会社説明資料
freee
18
520k
プロダクトエンジニアが活躍する環境を作りたくて 事業責任者になった話 ~プロダクトエンジニアの行き着く先~
gimupop
1
480
GitHub Universe: Evaluating RAG apps in GitHub Actions
pamelafox
0
180
【若手エンジニア応援LT会】AWSで繋がり、共に成長! ~コミュニティ活動と新人教育への挑戦~
kazushi_ohata
0
180
visionOSでの空間表現実装とImmersive Video表示について / ai-immersive-visionos
cyberagentdevelopers
PRO
1
110
【若手エンジニア応援LT会】AWS Security Hubの活用に苦労した話
kazushi_ohata
0
170
顧客が本当に必要だったもの - パフォーマンス改善編 / Make what is needed
soudai
24
6.8k
新R25、乃木坂46 Mobileなどのファンビジネスを支えるマルチテナンシーなプラットフォームの全体像 / cam-multi-cloud
cyberagentdevelopers
PRO
1
130
AWSコンテナ本出版から3年経った今、もし改めて執筆し直すなら / If I revise our container book
iselegant
15
4k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Gamification - CAS2011
davidbonilla
80
5k
The Language of Interfaces
destraynor
154
24k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
9
680
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.6k
BBQ
matthewcrist
85
9.3k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
How to Ace a Technical Interview
jacobian
275
23k
Six Lessons from altMBA
skipperchong
26
3.5k
Transcript
!NBLPUPX 3BODIFS.FFUVQ 5PLZP ,VCFSOFUFTה/FU"QQאזּ 5SJEFOU⢪ %ZOBNJD1SPWJTJPOJOH
• せ.BLPUP8BUBOBCF • أزٖ٦آكٝت٦䨽㾩 • 剑鵚כؙٓؐس؟٦ؽأ 侧㢳ֻ • ؝ٝذشכ䎃ְַֻ •
LTכ䎃ְַֻ • ➙傈ך鑧כ
00 .. 1 , 2 1 2 1 ,VCFSOFUFTהطحز،حفأزٖ٦آאזּ
4UPSBHF0SDIFTUSBUPS5SJEFOU 暴䗙涸ז堣腉ؙٗ٦صؚٝךرٌ غحؙ،حف麊欽חאְג תה ،آؑٝت
ر٦ةفٓحزؿؓ٦ي ,VCFSOFUFTהطحز،حفאז־ծהכוְֲֲֿהַ ➙傈鑧ׅⰻ㺁ךؔ٦غ٦ؽُ٦ 201 8 8 . ,VCFSOFUFT ,0
,88 17$ַ4UPSBHF$MBTT䭷㹀 4UPSBHF$MBTTךQSPWJTJPOFSה׃ג5SJEFOU䭷㹀 أزٖ٦آ♳חنُٔ٦ي⡲䧭׃ 17הغ؎ٝسծ؝ٝذشחوؐٝز
0QFO4IJGULTךر٦ة盖椚 ؝ٝذشفٓحزؿؓ٦يחطحز،حفָ䗳銲ז椚歋 00 .. 1 , 2 1 2
1 4UPSBHF0SDIFTUSBUPS 5SJEFOU
4UBUJDWT%ZOBNJD1SPWJTJPOJOH אךأزٖ٦آفٗؽآّصؚٝ䩛岀 00 .. 1 , 2 1 2
1 أزٖ٦آ 盖椚罏 • 銲ה⣘窌ךىأوحثך〳腉䚍ծ ꬊ⸬桦זٔا٦أ⢪欽朐屣 • 䌢חٔا٦أך朐屣湊鋔ծ 湡ךךةأؙח꧊⚥׃⡲噟לַ חזג׃תֲ • ٔا٦أךⵃ欽כ➂➜׃歍锜٥ 䪫钠 • ٔا٦أָ⢪ִ״ֲחזתדך ٔ٦سة؎يָꞿְ • 䗳銲זהֹח䗳銲זֽ فٗؽآّصؚٝ • ⣣⦼ך넝ְ⡲噟ח儗䫎♴דֹ ״״ְ؟٦ؽأװ倜堣腉䲿⣘׃ 竲ֽֿה㹋植 • ؔٝروٝسחٔا٦أָ⢪欽〳腉 • ٔ٦سة؎يזֻؙٔحؙד 涪ٔا٦أָⵃ欽〳腉 4UBUJD1SPWJTJPOJOH ✲ח䗳銲חזֲז宕竲⻉걄㚖彊⪒׃ծ 銲実儗ח؝ٝذشחوؐٝزׅ倯䒭 %ZOBNJD1SPWJTJPOJOH 銲実׀הח宕竲⻉걄㚖فٗؽآّصؚٝ׃ծ ؝ٝذشחوؐٝزׅ倯䒭 涪罏
4UBUJDWT%ZOBNJD1SPWJTJPOJOH אךأزٖ٦آفٗؽآّصؚٝ䩛岀 00 .. 1 , 2 1 2
1 أزٖ٦آ 盖椚罏 • ؟٦ؽأ䲿⣘ך ٔ٦سة؎يך瀉簭 • 盖椚罏ךٗ٦ָٕ㢌 ؟٦ؽأؒٝعٝأח岣⸂ • 涪חַַתדך 儗瀉簭 • 欰欵䚍ぢ♳㹋植 %ZOBNJD1SPWJTJPOJOH ד㹋植דֹֿה • 䗳銲זהֹח䗳銲זֽ فٗؽآّصؚٝ • ⣣⦼ך넝ְ⡲噟ח儗䫎♴דֹ ״״ְ؟٦ؽأװ倜堣腉䲿⣘׃ 竲ֽֿה㹋植 • ؔٝروٝسחٔا٦أָ⢪欽〳腉 • ٔ٦سة؎يזֻؙٔحؙד 涪ٔا٦أָⵃ欽〳腉 %ZOBNJD1SPWJTJPOJOH 銲実׀הח宕竲⻉걄㚖فٗؽآّصؚٝ׃ծ ؝ٝذشחوؐٝزׅ倯䒭 涪罏
4UPSBHF0SDIFTUSBJUPS5SJEFOU ⹛涸חأزٖ٦آٔا٦أفٗؽآّصؚׅٝ➬穈 00 .. 1 , 2 1 2
1 4UPSBHF"CTUSBDUJPO-BZFS4UPSBHF1PPM $MJFOUT"QQT ,VCFSOFUFT 0SDIFTUSBUJPO&OHJOF 4UPSBHF.BOBHFNFOU &OHJOF 0/5"1 "'''"44FMFDU$MPVE 7PMVNFT 4PMJE'JSF ,VCFSOFUFT1MVHJO $SFBUF%FMFUF$PNNBOET &4FSJFT ر٦ةفٓحزؿؓ٦يך 窟さ涸ז؎ٝة٦ؿؑ٦أ غحؙؒٝسأزٖ٦آכ醱侧鏣㹀 فٗز؝ٕכ /'4 J4$4* 宕竲⻉أزٖ٦آ⹛涸חⶴ䔲 نُٔ٦ي⡲䧭ַوحؾؚٝתד 荈⹛⻉ فٗؽآّصؚׅٝأزٖ٦آכ أزٖ٦آؙٓأד䭷㹀׃ ألحؙד荈⹛ⶴ䔲 &YUFSOBM%ZOBNJD 1SPWJTJPOFS ,VCFSOFUFTך 4UPSBHF$MBTT 䱰欽 أزٖ٦آؔٝروٝسח فٗؽآّصؚٝ〳腉 5SJEFOU 5SJEFOU 1PE FUDE $4*ٌ٦سדךرفٗ؎〳腉
5SJEFOUرفٗ؎ًٝزך崧 $ ,1 :: 8/ 1 1 10 5SJEFOUך؎ٝأز٦ٕ
(JU)VCַغ؎شٔتؐٝٗ٦س 1 : . / 7 ,1 :: 018 1 1- 1 0 8 -0 $ 018 8 - 1 $ - - A2 018 8 - 1 $ - /0 018 8 - 1 DQ TBNQMFJOQVUCBDLFOEPOUBQOBTKTPO TFUVQCBDLFOEKTPO WJTFUVQCBDLFOEKTPO USJEFOUDUM JOTUBMMOUSJEFOU ONTAPの場合 { "version": 1, "storageDriverName": "ontap-nas", “managementLIF”: “管理用IP”, “dataLIF”: “データ通信用IP", “svm”: “svmXX”, “username”: “vsadmin”, “password”: “パスワード” }
$ kubectl create -f StorageClassFastest.yml 5SJEFOUرفٗ؎ًٝزך崧 00 .. 1
, 2 1 2 1 4UPSBHF#BDLFOE涫ꐮ㹋倵 4UPSBHF$MBTT⡲䧭 USJEFOUDUM OUSJEFOUDSFBUFCBDLFOEGTFUVQCBDLFOEKTPO +-------------------+----------------+--------+---------+ | NAME | STORAGE DRIVER | ONLINE | VOLUMES | +-------------------+----------------+--------+---------+ | NFS_ONTAP_Backend | ontap-nas | true | 0 | +-------------------+----------------+--------+---------+ kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: ontap-gold provisioner: netapp.io/trident parameters: backendType: "ontap-nas” media: "ssd” provisioningType: "thin” snapshots: "true” clones: “true”
$ kubectl get pod -n trident NAME READY STATUS RESTARTS
AGE trident-6bf755d75-d6wd7 2/2 Running 0 51m $ kubectl create -f FastestPVC.yml 5SJEFOUرفٗ؎ًٝزך崧 00 .. 1 , 2 1 2 1 ˑˑ ˑˑ 17$ ⡲䧭 酡駈 5SJEFOU荈⡤כ1PEה׃גؙٓأةח رفٗ؎ׁկ
%ZOBNJD1SPWJTJPOJOH⢪ֲ♳דך䕵ⶴⴓ䬐 00 .. 1 , 2 1 2 1
盖椚罏כأزٖ٦آؙٓأ ⡲䧭٥盖椚٥麊欽 ػؿؓ٦وٝأ ر٦ة⥂隊 涪罏חⰕׅ堣腉ך鼅㹀 涪罏כ،فٔ؛٦ءّٝח 䗳銲זأزٖ٦آ銲⟝ أزٖ٦آؙٓأ➜׃ג銲実
5SJEFOUך暴䗙涸ז堣腉 'BTUDMPOJOH 'MFY$MPOF LVCFSOFUFT ך⚅歲ד崞欽 8 2 11 0.
, 馄넝鸞ؙٗ٦صؚٝ 5SJEFOU ַ 䊬㣐זنُٔ٦يד㺁ꆀ嶊顤ׇ׆ח 馄넝鸞חر٦ة؝ؾ٦ /FU"QQ'MFY$MPOF,VCFSOFUFTַ崞欽〳腉 ⳿勻״ֲחזֿה فٖؽٕس橆㞮ך넝鸞㾜 劤殢橆㞮ח䕦갟ׇ׆ח㣐鋉垷ז⚛ذأز 圫ղז欽鷿ח⢪欽〳腉 A
/FU"QQ崞欽׃䩛岀 ؙٗ٦صؚٝ堣腉崞欽׃ر٦ة؝ؾ٦ أزٖ٦آٖ؎َ٦דׅץג㸣穠ծأزٖ٦آ ⰻ鿇דر٦ة؝ؾ٦㹋倵 鸞ֻגծ㺁ꆀ⢪זְָه؎ٝز /FU"QQ ♧菙涸ז䩛岀 ر٦ةك٦أ؝ٝذش饯⹛חر٦ة؝ؾ٦㹋倵
ر٦ة؝ؾ٦؝ٝذش⡲䧭׃ծ✲؝ؾ٦ ؝ؾ٦䖓חر٦ةك٦أ饯⹛ 8 رٌءشٔؔذأز橆㞮ךرفٗ؎ ✲彊⪒׃%#ذأزر٦ةر٦ةك٦أ饯⹛儗ח؝ؾ٦ 00 .. 1 , 2 1 2 1 $POUBJOFSJ[FE %# (# $POUBJOFSJ[FE %# $MPOF (# $POUBJOFSJ[FE %# $POUBJOFSJ[FE %# $PQZ $POUBJOFS ⴱ劍彊⪒ ر٦ة؝ؾ٦欽ך؝ٝذش⡲䧭 4SDEFTU 䭷㹀׃גر٦ة؝ؾ٦ ر٦ةك٦أ饯⹛ ؝ؾ٦׃ر٦ةوؐٝز 0SBDMF؝ٝذش饯⹛ 3FBE0OMZ דوؐٝز 43$ %FTU
00 .. 1 , 2 1 2 1 رٌ
00 .. 1 , 2 1 2 1 3BODIFSד鷄⸇ׁ
)FMNך WBMVFTZBNM 剅ֹ䳔ִד׃ת׃կ
)FMNך؝وٝسٓ؎ַٝדずׄ״ֲזֿהָ〳腉 00 .. 1 , 2 1 2 1
$ helm install stable/mysql --name [リリース名] --namespace [ネームスペー ス] --set persistence.storageClass=[ストレージクラス名] --set persistence.annotations."trident\.netapp\.io/cloneFromPVC"=[コピー元 のPVC名] )FMNثٍ٦زך⡲如痥דָׅ˘ 1FSTJTUFOUך鿇ⴓWBMVFTד㹀纏דֹ״ֲח⡲גְךד֮לծ 4UPSBHF$MBTTהBOOPUBUJPO㹀纏ׅל؝وٝسٓ؎ַٝ〳腉דׅկ
00 .. 1 , 2 1 2 1 غحؙ،حف麊欽חאְג
植㖈〳腉ז圓䧭
,VCFSOFUFT /FU"QQ )FQUJP "SL ؙٓأةך圓䧭䞔㜠ծر٦ةך鯄鷏 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي
$POUBJOFSJ[FE "QQT ,VCFSOFUFT♳ך ،فٔ؛٦ءّٝ 圓䧭䞔㜠%3 ،فٔ؛٦ءّٝر٦ة ך%3 ,VCFSOFUFTؙٓأةⰋ⡤ %3〳腉ח #BDLVQ 3FTUPSF 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي $POUBJOFSJ[FE "QQT ꬊず劍 ٖفٔ؛٦ءّٝ "844 "[VSFCMPC ($4 4DPNQBUJCMF 00 .. 1 , 2 1 2 1
,VCFSOFUFT /FU"QQ )FQUJP "SL ؙٓأةך圓䧭䞔㜠ծر٦ةך鯄鷏 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي
$POUBJOFSJ[FE "QQT ,VCFSOFUFT♳ך ،فٔ؛٦ءّٝ 圓䧭䞔㜠%3 #BDLVQ 3FTUPSF 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي $POUBJOFSJ[FE "QQT "844 "[VSFCMPC ($4 4DPNQBUJCMF • )FQUJP "SL⢪ג ,VCFSOFUFTך圓䧭䞔㜠 غحؙ،حفٔأز، • 植㖈כنُٔ٦يך ٖفٔ؛٦ءّٝכ ꣲ㹀涸 W։ 3FTUJD JOUFHSBUJPO • "84 • "[VSF .BOBHFE%JTL • (PPHMF1FSTJTUFOU%JTLT 00 .. 1 , 2 1 2 1
,VCFSOFUFT /FU"QQ )FQUJP "SL ؙٓأةך圓䧭䞔㜠ծر٦ةך鯄鷏 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي
$POUBJOFSJ[FE "QQT ,VCFSOFUFT♳ך ،فٔ؛٦ءّٝ 圓䧭䞔㜠%3 #BDLVQ 3FTUPSF 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي $POUBJOFSJ[FE "QQT "844 "[VSFCMPC ($4 4DPNQBUJCMF • ر٦ةٖفٔ؛٦ءّٝ כأزٖ٦آ堣腉崞欽 • أزٖ٦آך圓䧭䞔㜠 ת׀ה鯄鷏 ،فٔ؛٦ءّٝر٦ة ٖفٔ؛٦ءّٝ ꬊず劍 ٖفٔ؛٦ءّٝ 00 .. 1 , 2 1 2 1
,VCFSOFUFT /FU"QQ )FQUJP "SL ؙٓأةך圓䧭䞔㜠ծر٦ةך鯄鷏 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي
$POUBJOFSJ[FE "QQT ,VCFSOFUFT♳ך ،فٔ؛٦ءّٝ 圓䧭䞔㜠%3 ،فٔ؛٦ءّٝر٦ة ך%3 ,VCFSOFUFTؙٓأةⰋ⡤ %3〳腉ח #BDLVQ 3FTUPSF 4UPSBHF 0SDIFTUSBUPS /FU"QQ5SJEFOU ر٦ةفٓحزؿؓ٦ي $POUBJOFSJ[FE "QQT ꬊず劍 ٖفٔ؛٦ءّٝ "844 "[VSFCMPC ($4 4DPNQBUJCMF 00 .. 1 , 2 1 2 1
,VCFSOFUFT /FU"QQ )FQUJP "SL铬겗 § ،فٔ؛٦ءّٖٝ؎َծ؎ٝؿٖٓ؎َדךر٦ة侭さוֲ䬐⥂ַׅ § 圓䧭䞔㜠ך《䖤)FQUJP "SL §
،فٔ؛٦ءّٝر٦ةأزٖ٦آ堣腉 § וַ♧倯ד《䖤׃ְָ˘ § )FQUJP "SLֽדװה،فٔ؛٦ءّٝر٦ةׅץגؔـآؙؑزأزٖ٦آפ鯄鷏ׅ䗳銲ָ֮կ § أزٖ٦آֽדװהLTؙٓأةך䗁⯋ׅץג䩛דװ䗳銲ָ֮ § LTؙٓأة䗁⯋ׅךؔلٖ٦ءָّٝ㣐㢌 § ,T♳דؔـآؙؑزأزٖ٦آ珩⫴ׇׁ § ٦ٔأز،ׅחLTؙٓأةָ䗳銲˘ ؙٓأةך圓䧭䞔㜠ծر٦ةך鯄鷏 00 .. 1 , 2 1 2 1
תה § /FU"QQה,VCFSOFUFTךꟼ⤘鑧ת׃կ § 5SJEFOUءٝفٕדּׅ⢪ִկ § )FQUJP "SLכ⦐➂涸חהג劍䖉׃גְתׅկ § غحؙ،حفծ%3הְֲ錁挿ךקַחؙٓأة؝ؾ٦ך״ֲזֿהדֹךדկ
§ 䗳銲זהֹחLTؙٓأة甧♳־ג圓䧭䞔㜠וׅה،فٔ؛٦ءָّׅٝץג㾜דֹկ § 罋ִֿהָ㢳ְַָָֿ嚂׃կ 00 .. 1 , 2 1 2 1
5IBOLZPV 00 .. 1 , 2 1 2 1