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
gcpug-kyoto#2-LT1
Search
Tomoki Sugiura
May 25, 2019
0
610
gcpug-kyoto#2-LT1
Tomoki Sugiura
May 25, 2019
Tweet
Share
More Decks by Tomoki Sugiura
See All by Tomoki Sugiura
CiliumによるKubernetes Network Policyの実現 CNDT2021
shanpu
0
1k
naist colloquium-B 2
shanpu
0
170
ricc-20210826
shanpu
0
440
IOT53
shanpu
0
44
RICC-PIoT Workshop 2021
shanpu
0
550
ricc-nii-2020
shanpu
0
94
Cloud Native Kansai #05 LT4
shanpu
1
910
kubernetes-seminar
shanpu
0
150
KansaiLT2
shanpu
0
210
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
229
18k
How GitHub (no longer) Works
holman
310
140k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
A better future with KSS
kneath
238
17k
Adopting Sorbet at Scale
ufuk
73
9.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
RailsConf 2023
tenderlove
29
900
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Unsuck your backbone
ammeep
668
57k
4 Signs Your Business is Dying
shpigford
180
21k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Six Lessons from altMBA
skipperchong
27
3.5k
Transcript
GKE ҆͞ͷݶքΉ ($16(,ZPUP-5 SEL@KIT
ຊͷLTͷ༰ͱత !2 ˓ (,&ΫϥελΛ҆͘ߏஙɾӡ༻͢Δํ๏Λհ͢Δ ˓ ͓ۚΛΘͤΑ͏ͱ͢Δ($1 ($1ѱಙαʔϏεͰͳ͍ ͱυένͳ େֶੜͷઓ͍ͷهΛ͍ͨ͠
͓͠ͳ͕͖ !3 ˓ ΫϥελΛ Ͱ͖Δ͚ͩ҆͘ ࡞Δ ˓ ΫϥελʹσϓϩΠͨ͠ΞϓϦέʔγϣϯΛ Ͱ͖Δ͚ͩ҆͘ ֎෦ެ։͢Δ
GCP AlwaysFree !4 ˓ ($1ʹ"MXBZT'SFFͱΑΕΔ ৗʹແྉͷ༻͕͋Δ ˓ Ϋϥελ࡞ʹؔΘΔແྉ ˔ (,&ɿΫϥελཧखྉແྉ
˔ (PPHMF$PNQVUF&OHJOFɿ ɹɹɹGNJDSPҰແྉ
҆͘ΫϥελΛ࡞Δ !5 ˓ GNJDSPͭͰΫϥελΛ࡞Δ ˔ GNJDSPϊʔυ͕Ұ൪͍҆ ˗ Ұͭ͋ͨΓ<υϧEBZ> ˔ GNJDSPͷεϖοΫ
W$16YɼϝϞϦ(#
ൃੜ
҆͘ΫϥελΛ࡞Δ !7 ˓ LVCFEOT͕QFOEJOHͰࢭ·ͬͨ··ʹͳΔ ˔ ͦͷͨΊ໊લղܾෆՄ ˔ LVCFDUMUPQ͑ͳ͍ ˔ ݪҼϝϞϦෆ
($1ίϯιʔϧʹͯ֬ೝ ˓ LVCFDUMHFUQPBMMOBNFTQBDFTͯ͠ΈΔ ˔ ϞχλϦϯάؔ࿈ͷ1PE͕͍ͬͺ͍SVOOJOOHͯ͠Δ ˔ 4UBDLESJWFS-PHHJOHͱ4UBDLESJWFS.POJUPSJOHΛແޮ ˠղܾ☺
͜ͷૉΒ͍͠Ϋϥελʹ֎෦ૄ௨ੑΛʂ !8 ˓ ֬ೝ༻ʹ%FQMPZNFOUͰOHJOY QPEΛ༻ҙ ˓ ϒϥβ͔ΒΞΫηε͍ͨ͠ʂ ˓ 4FSWJDFLJOE-PBE#BMBODFS ΛBQQMZ
˔ ($1ఏڙͷ-PBE#BMBODFS͕༻ҙ ͞ΕΔ ˔ ʙͭͱάϩʔόϧ*1͕ɹ ׂΓͯΒΕΔ
͜ͷૉΒ͍͠Ϋϥελʹ֎෦ૄ௨ੑΛʂ !9
None
͜ͷૉΒ͍͠Ϋϥελʹ֎෦ૄ௨ੑΛʂ !11 ˓ ($1-PBE#BMBODJOHผྉۚ ˓ ֹ݄ԁ
-#ʹ͓ۚ͏ͷ͍ͬͨͳ͘ͳ͍͔ʜʁ
ํ๏1 port-forwardΛ͏ !13 ˓ LVCFDUMQPSUGPSXBSEEFQMPZEFNPEFQMPZNFOU ˓ ϒϥβͰMPDBMIPTUʹΞΫηε ˓ ͍͍ͪͪQPSUGPSXBSE͢ΔͷΊΜͲ͏ʜ
˔ ը໘༗͞ΕΔ
ํ๏2 NodePortΛ͏ !14 ˓ /PEFʹσϑΥϧτͰ֎෦*1ׂ͕Γ ৼΒΕ͍ͯΔ ˔ LVCFDUMHFUOPPXJEFͰݟΕΔ ˓ ϊʔυ͕֎෦ʹެ։͞Ε͍ͯΔͳΒ
/PEF1PSUͰ։͚ͯ͋͛Δ͚ͩͰ͍ ͍ʂ ˓ ϑΝΠΞΥʔϧͷઃఆΕͣʹ ˔ ωοτϫʔΩϯάʼ 71$ωοτϫʔΫʼ ϑΝΠΞΥʔϧϧʔϧ
ํ๏2 NodePortΛ͏ !15
None
-ϩʔυόϥϯαཉ͍͠
L7ϩʔυόϥϯα͕ཉ͍͠ !18 ˓ (,&Ͱ4FSWJDFLJOE*OHSFTT ҰൃͰͰ͖Δ ˔ ($1͕༻ҙͯ͘͠ΕΔ ˔ ϊʔυྉۚͱผͰ͓͕͔͔ۚΔ ˓
ཁOHJOYJOHSFTTDPOUSPMMFS ͕͋Ε͍͍
ͦ͏ͩɼΫϥελʹ*OHSFTTΛ༻ҙ͠Α͏
L7ϩʔυόϥϯα͕ཉ͍͠ !20 ˓ *OTUBMMํ๏/HJOY*OHSFTT $POUSPMMFSެࣜαΠτʹهࡌ͞ Ε͍ͯΔ ˔ ֎෦ૄ௨ੑ/PEF1PSUͰ֬อ ˓ ϚγϯϦιʔε͕ΓΕՃ
ྉۚͳ͠
ൃੜ
404Τϥʔ !22 ˓ ΞΫηε͢Δͱ͕ฦͬͯ͘Δ ˔ *OHSFTTԼͷαʔϏεਖ਼ৗʹೝࣝ͞Ε͍ͯΔ ˔ *OHSSFTT$POUSPMMFS*OHSFTTͷ$3&"5&ΠϕϯτΛ ݕ͍ͯ͠Δ ˔
ϩάΛݟΔͱࢥΘΕΔՕॴ͕ͳ͍ ˔ ࠓޙཁௐࠪ ˔ Γ՝ۚͨ͠ऀ͕ڧ͍
ϞχλϦϯάΛ༗ޮʹ͍ͨ͠ !23 ˓ ϊʔυΛ૿͢ଞͳ͠ ˓ ஈΛ͑ΔͳΒQSFFNQUJWF ϊʔυΛݕ౼ ˔ ࣌ؒʹҰམͪΔ ˔
ΊͪΌͪ͘Ό͍҆ ˔ ˠ<υϧIPVS> OTUBOEBSE ˓ ઌʹϊʔυϓʔϧΛՃ͔ͯ͠ ΒϞχλϦϯάΛ༗ޮʹ͢Δ
ίετܭࢉ (ࡉ͔͍ͷΛআ͘) !24 ˓ GNJDSPº Ұແྉ ˔ <υϧEBZ>º<OPEF>º<EBZNPOUI><υϧNPOUI> ˓
QSFFNQUJWFOTUBOEBSEº ˔ <υϧEBZ>º<OPEF>º<EBZNPOUI><υϧNPOUI> ˓ ετϨʔδ ˔ <υϧNPOUI>º<(#>º<OPEF><υϧNPOUI> ˓ 5PUBM ˔ <υϧNPOUI> ˔ º<NPOUI>υϧ
(,&Ͱָ͍͠,VCFSOFUFTϥΠϑΛʂ
ࢀߟ !26 ˓ ($1DPNQVUFFOHJOFʹ͍ͭͯ ˔ IUUQTDMPVEHPPHMFDPNDPNQVUFQSJDJOH ˓ ($1ίετݟੵΓ ˔ IUUQTDMPVEHPPHMFDPNQSPEVDUTDBMDVMBUPS
˓ /HJOY*OHSFTT$POUSPMMFS ˔ IUUQTLVCFSOFUFTHJUIVCJPJOHSFTTOHJOY