Slide 1

Slide 1 text

我々は Kubernetes の
 何を監視すればいいのか? $MPVE/BUJWF%BZT,BOTBJ ࡔҪֶ!NBOBCVTBLBJ

Slide 2

Slide 2 text

#CNDK2019

Slide 3

Slide 3 text

w GSFFFגࣜձࣾ43&ΤϯδχΞ w ೥͔ΒϓϨΠϯάϚωʔδϟʔ w ෳۀͰελʔτΞοϓͷٕज़ΞυόΠβʔ w ੜ·Ε΋ҭͪ΋ؔ੢ w 5XJUUFS (JU)VC w !NBOBCVTBLBJ w ϒϩά w NBOBCVTBLBJEFW ࡔҪֶ .BOBCV4BLBJ

Slide 4

Slide 4 text

εϞʔϧϏδωεΛɺ ੈքͷओ໾ʹɻ .*44*0/ ੜ࢈೥ྸਓޱ͕ܶతʹݮগ͠ɺຫੑతͳਓखෆ଍ͱͳΔ೔ຊ Ͱ࿑ಇੜ࢈ੑ޲্͸ۓٸͷ՝୊ͱͳ͍ͬͯ·͢ɻ GSFFF͸ʮਓ޻஌ೳʯͱʮ౷߹جװۀ຿γεςϜʯΛΫϥ΢υ ٕज़Λ׆༻͠ɺۀ຿ޮ཰ԽͷαϙʔτΛଓ͚Δ͜ͱͰɺதݎத খاۀͷόοΫΦϑΟεۀ຿ޮ཰ԽΛ໨ࢦ͍ͯ͠·͢ɻ

Slide 5

Slide 5 text

PRODUCTS

Slide 6

Slide 6 text

6 ૑ۀ͔Β*10·Ͱɺதখاۀ׆ੑԽͷͨΊͷαʔϏεΛҰؾ௨؏Ͱఏڙ ձࣾ֓ཁ ❂ೲ੫͢Δ ⾭ҭͯΔ ↻ӡӦ͢Δ ✩͸͡ΊΔ ձࣾઃཱGSFFF ։ۀGSFFF Ϋϥ΢υձܭιϑτGSFFF ਓࣄ࿑຿GSFFF ϚΠφϯόʔ؅ཧGSFFFؚΉ Ϋϥ΢υਃࠂGSFFF 161ԯ603ສԁ (ࢿຊ४උۚ౳ؚΉ) ैۀһ਺ ࣄۀ಺༰ Ϋϥ΢υܕόοΫΦϑΟεαʔϏεͷ։ൃɾൢച ࢿຊۚ ઃཱ೥݄೔ 2012೥7݄ 506໊ʢ2019೥6݄຤࣌఺ʣ 2019೥ʮಇ͖͕͍ͷ͋Δձࣾʯ ϥϯΩϯά4Ґ

Slide 7

Slide 7 text

ར༻ࣄۀॴ਺ྦྷܭ ສ 2014.3 2015.3 2016.3 2017.3 2018.3 800,000 600,000 300,000 65,000 1,000,000 1,000,000

Slide 8

Slide 8 text

8 ,VCFSOFUFTͷ؂ࢹ͸͜Ε·ͰͱԿ͕ҧ͏ͷ͔ʁ ϚωʔδυαʔϏεΛ࢖͏ҙຯ ؂ࢹΛ࢝ΊΑ͏ ·ͱΊ ΞδΣϯμ

Slide 9

Slide 9 text

9 ʮ,VCFSOFUFTͷ؂ࢹʹऔΓ૊Έ͍ͨਓ͕ɺ࠷ॳͷҰาΛ౿Έग़ͨ͢Ί ͷϙΠϯτΛԡ͑͞ΒΕΔ͜ͱʯ GSFFFͰͷ࣮ӡ༻͔ΒֶΜͩ͜ͱΛ͓࿩͠͠·͕͢ɺ·ͩ·ͩվળ͕ඞཁ Ͱ͢ɻͥͻϑΟʔυόοΫΛ͍ͩ͘͞ ࠓ೔ͷΰʔϧ

Slide 10

Slide 10 text

10 w ,VCFSOFUFTͷجຊతͳ͜ͱ w ಛఆͷΫϥ΢υϕϯμʔ΍؂ࢹαʔϏεͷ࢖͍ํ w ίϯςφ಺ͷΞϓϦέʔγϣϯ؂ࢹ ࿩͞ͳ͍͜ͱ

Slide 11

Slide 11 text

,VCFSOFUFTͷ؂ࢹ͸ ͜Ε·ͰͱԿ͕ҧ͏ͷ͔ʁ 01 Section

Slide 12

Slide 12 text

12 w GSFFFͰ͸΋ͱ΋ͱ044൛ͷ&MBTUJD4UBDLͰ؂ࢹ͍ͯͨ͠ w SFG&MBTUJD4UBDLʹΑΔ,VCFSOFUFTϞχλϦϯάγεςϜͷ঺հ w Ծ૝Ϛγϯͱಉ͡Α͏ʹ؂ࢹ͍͕ͯͨ͠ɺͦ͏͍͏ϝτϦΫεΛݟͯ΋ ͋·Γ໾ʹཱͨͳ͔ͬͨ w ࣮ࡍɺ໰୊͕ى͖͍ͯͯ΋ؾ෇͚ͳ͍͜ͱ͕͋ͬͨ ؂ࢹͷߟ͑ํ΍ΞϓϩʔνΛม͑ͳ͚Ε͹ͳΒͳ͍ͷͰ͸ʁ ͳͥ؂ࢹͷ࿩Λ͢Δͷ͔ʁ

Slide 13

Slide 13 text

13 w ΍Γ͍ͨ؂ࢹΛ౿·͑Δͱ%BUBEPHͷํ͕ద͍ͯ͠Δͱ൑அ w &MBTUJD4UBDL͕ྼ͍ͬͯΔͱ͍͏Θ͚Ͱ͸ͳ͍ w ͜Ε·Ͱͷߟ͑ํͰಉ͡Α͏ʹ؂ࢹΛ࢝Ίͯ͠·ͬͨͷ͕ྑ͘ͳ͔ͬͨ &MBTUJD4UBDL͔Β%BUBEPH΁Ҡߦ

Slide 14

Slide 14 text

ؓ࿩ٳ୊

Slide 15

Slide 15 text

15 w *NNVUBCMF*OGSBTUSVDUVSF w Ұ౓࡞ͬͨ΋ͷ͸มߋͤͣʹ࡞Γ௚͢ w એݴతઃఆ w ͋Δ΂͖ঢ়ଶΛએݴ͠ɺͦͷঢ়ଶʹऩଋͤ͞Δ w ࣗݾճ෮ w ্هͷಛ௃Λੜ͔͠ɺਓखΛհͣ͞ʹ͋Δ΂͖ঢ়ଶʹ໭͢ ,VCFSOFUFTͷಛ௃

Slide 16

Slide 16 text

16 ,VCFSOFUFTͷΞʔΩςΫνϟ apiserver etcd scheduler controller manager kubelet container runtime .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime

Slide 17

Slide 17 text

17 w ͜Ε·Ͱͷ؂ࢹ w ޡͬͨঢ়ଶΛݕ஌ͯ͠ਓ͕ؾ෇ͨ͘Ίͷ؂ࢹ w ΦϖϨʔγϣϯ͢Δͷ͸ਓ͕લఏʢҰ෦͸ࣗಈԽʣ w ,VCFSOFUFTͷ؂ࢹ w ࣗݾճ෮͕ਖ਼͘͠ಈ͍͍ͯΔ͔֬ೝ͢ΔͨΊͷ؂ࢹ w ΦϖϨʔγϣϯ͢Δͷ͸,VCFSOFUFTࣗ਎ ॏཁͳͷ͸,VCFSOFUFTͷࣗݾճ෮ྗΛҡ࣋͠ଓ͚Δ͜ͱɻ ͜Ε·Ͱͷ؂ࢹͱͷҧ͍

Slide 18

Slide 18 text

18 w ·ͣ͸,VCFSOFUFTͷࣗݾճ෮ྗΛҡ࣋͢ΔͨΊͷ؂ࢹ w ݸʑΛίϯςφΛݟΔͷ͸ͦͷޙ w ֤ίϯϙʔωϯτ͕མͪΔͱɺͲ͜ʹӨڹ͕ग़Δ͔೺Ѳ͓ͯ͘͠ w SFGLVCFTZTUFNམͱͯ͠Έ·ͨ͠ ؂ࢹͷϙΠϯτ

Slide 19

Slide 19 text

19 ,VCFSOFUFTͷΞʔΩςΫνϟʢ࠶ܝʣ apiserver etcd scheduler controller manager kubelet container runtime .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime ؂ࢹͱ͍͏ͱ ݸʑͷίϯςφʹ஫໨ ͕ͪ͠ʜ

Slide 20

Slide 20 text

20 ,VCFSOFUFTͷΞʔΩςΫνϟʢ࠶ܝʣ apiserver etcd scheduler controller manager kubelet container runtime .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime ·ͣݟΔ΂͖͸ࣗݾ ճ෮Λࢧ͑Δͱ͜Ζ

Slide 21

Slide 21 text

ϚωʔδυαʔϏεΛ࢖͏ҙٛ 02 Section

Slide 22

Slide 22 text

ձ৔ͷօ͞Μʹ࣭໰Ͱ͢✋

Slide 23

Slide 23 text

ຊ൪؀ڥͰ,VCFSOFUFTΛ ࢖͍ͬͯΔํ✋

Slide 24

Slide 24 text

ࣗલͰ,VCFSOFUFTΫϥελΛ ӡ༻͍ͯ͠Δํ✋

Slide 25

Slide 25 text

25 w "NB[PO&,4͕౦ژϦʔδϣϯʹདྷΔ·Ͱ͸ɺLVCFBXTΛ࢖ͬͯ &$্ʹΫϥελΛߏங w ͋Δ೔ಥવɺ,VCFSOFUFTΫϥελʹҰ੾઀ଓͰ͖ͳ͘ͳΔো֐͕ൃੜ w ௐ΂ͯΈΔͱɺLVCFMFU͕"1*ͷೝূʹ࢖͏5-4ূ໌ॻ͕ࣦޮ͍ͯ͠ ͨ w SFG,VCFSOFUFTͷ5-4ূ໌ॻʹ͍ͭͯௐ΂ͯΈͨ GSFFFͰ࣮ࡍʹ͋ͬͨ࿩

Slide 26

Slide 26 text

26 w ,VCFSOFUFTΫϥελΛ҆ఆతʹӡ༻͠ଓ͚Δͷ͸େม w ࠷৽όʔδϣϯ΁ͷ௥ै w ίϯτϩʔϧϓϨʔϯͷ৑௕Խ w ֶशίετͷߴ͞ w ߏஙͰ͖Δ㱠ӡ༻Ͱ͖Δ w SFG.BDLFSFMʹ͓͚Δ,VCFSOFUFTར༻ͷऔ૊Έͱ͜Ε͔Β Ϋϥελӡ༻͕ϏδωεͷࠩผԽཁҼʹͳΒͳ͍ͷͰ͋Ε͹ɺੵۃతʹϚ ωʔδυαʔϏεΛ׆༻͢Δɻ ,VCFSOFUFTΫϥελͷࣗલӡ༻͸େม

Slide 27

Slide 27 text

27 ,VCFSOFUFTͷΞʔΩςΫνϟʢ࠶ܝʣ apiserver etcd scheduler controller manager kubelet container runtime .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime ࣗݾճ෮Λࢧ͑Δͱ ͜ΖΛ೚ͤΔ

Slide 28

Slide 28 text

28 w ϚωʔδυαʔϏεΛ׆༻͢Δ͜ͱͰ؂ࢹର৅ΛݮΒͤΔ w ଟ͘ͷ૊৫ʹ͓͍ͯɺӡ༻ίετΑΓϚωʔδυαʔϏεͷίετͷํ ͕͍҆ w ์͓͍ͬͯͯ΋ਐԽ͢Δ w ػೳ͕଍Γͳ͚Ε͹ཁ๬Λग़ͦ͏ w FHIUUQTHJUIVCDPNBXTDPOUBJOFSTSPBENBQ ϚωʔδυαʔϏεͷϝϦοτ

Slide 29

Slide 29 text

؂ࢹΛ࢝ΊΑ͏ 03 Section

Slide 30

Slide 30 text

30 ϝτϦΫεͷॏཁ౓Λ෼ྨ͢ΔͨΊʹɺ௨஌ϨϕϧͰ࣍ͷͭʹ෼ྨɻ w /POF w ϝτϦΫε͸ऩू͢Δ͕௨஌͠ͳ͍ w /PUJDF w ϝτϦΫεΛऩू͠ɺ஫ҙשىϨϕϧͰ௨஌͢ΔɻۓٸͷରԠΛඞཁ ͱͤͣɺ໷ؒͷΦϯίʔϧ͸͠ͳ͍ w "MFSU w ϝτϦΫεΛऩू͠ɺܯࠂϨϕϧͰ௨஌͢ΔɻਓʹΑΔଈ࠲ͳରԠΛ ඞཁͱ͠ɺ໷ؒ͸Φϯίʔϧ͢Δ ؂ࢹͷ௨஌Ϩϕϧ

Slide 31

Slide 31 text

31 w ద੾ͳ௨஌Ϩϕϧ͸ɺϓϩμΫτͷੑ࣭΍։ൃจԽʹΑͬͯҧͬͯ͘Δ w ͦͷ··औΓೖΕΔͷͰ͸ͳ͘ɺࣗ෼ͨͪʹ߹ͬͨ௨஌Λߟ͑Δ w FH.POJUPSJOH"MFSUJOHPOXIBUNBUUFST ؂ࢹͷ௨஌Ϩϕϧ

Slide 32

Slide 32 text

௨஌Ϩϕϧ/POF

Slide 33

Slide 33 text

33 w ௨஌Ϩϕϧ͕l/POFzͷϝτϦΫε͸ऩू͢Δ͚ͩ w جຊతʹ͸,VCFSOFUFTͷࣗݾճ෮ʹ೚ͤΒΕΔ΋ͷ ௨஌Ϩϕϧl/POFz

Slide 34

Slide 34 text

34 w Ϋϥελ w ϊʔυ਺ w ϊʔυ਺Λద੾ͳ୆਺ʹҡ࣋͢Δͷ͸$MVTUFS"VUPTDBMFSͷ໾ׂ w 1PE਺ w 1PE਺Λҡ࣋͢Δͷ͸%FQMPZNFOU΍%BFNPO4FUͷ໾ׂ w ϊʔυͷ$16 ϝϞϦ࢖༻཰ w ϦιʔεΛׂΓ౰ͯΒΕͳ͍ͱ͖͸$MVTUFS"VUPTDBMFS͕ϊʔυ Λ૿΍͢ ௨஌Ϩϕϧl/POFzͷ۩ମྫ

Slide 35

Slide 35 text

35 w Ϧιʔεͷҡ࣋΍ׂΓ౰ͯ͸,VCFSOFUFT͕ߦ͏ͷͰɺਓ͕ϑΥϩʔ͢ Δ༨஍͸͋·Γͳ͍ w ࣗݾճ෮͕ਖ਼͘͠ಈ͍͍ͯͳ͍৔߹͸্Ґͷ؂ࢹͰؾ෇͚Δʢޙड़ʣ ௨஌Ϩϕϧl/POFzͷରԠ

Slide 36

Slide 36 text

௨஌Ϩϕϧ/PUJDF

Slide 37

Slide 37 text

37 w ௨஌Ϩϕϧ͕l/PUJDFzͷϝτϦΫε͸ɺۓٸͷରԠ͸ෆཁ͕ͩ์ஔ͢ ΔͱϢʔβʔʹӨڹ͕ग़͔Ͷͳ͍΋ͷ w ࣗݾճ෮ػೳͷൣғ֎Ͱى͖͍ͯΔͷͰɺਓͷϑΥϩʔΛඞཁͱ͢Δ ௨஌Ϩϕϧl/PUJDFz

Slide 38

Slide 38 text

38 w Ϋϥελ w ,VCFSOFUFTͷόʔδϣϯ w &0-Λܴ͑ͨόʔδϣϯΛ࢖͍ͬͯͳ͍͔ w ϑΝΠϧγεςϜ࢖༻཰ w 1VMMͨ͠%PDLFSΠϝʔδ͕ཷ·Γ͕ͪ w ϩάΤʔδΣϯτͷΤϥʔ w %BFNPO4FUͰ഑ஔͨ͠ϩάΤʔδΣϯτ͕ΤϥʔʹͳΔͱɺίϯ ςφͷϩάΛܽଛ͔͠Ͷͳ͍ ௨஌Ϩϕϧl/PUJDFzͷ۩ମྫ

Slide 39

Slide 39 text

39 w ίϯςφ w 1PE΍%FQMPZNFOUͷΠϕϯτ w 00.,JMMFE $SBTI-PPQ#BDL0GG 1VMM*NBHF&SSPSͳͲ w 1PEͷϦελʔτճ਺ w ٸʹϦελʔτճ਺͕૿͍͑ͯͳ͍͔ w ίϯςφ഑ஔͷภΓ w ,VCFSOFUFTͷεέδϡʔϥ͸1PEͷ࡞੒࣌ʹ͔͠εέδϡʔϦϯ άΛߦΘͳ͍ ௨஌Ϩϕϧl/PUJDFzͷ۩ମྫ

Slide 40

Slide 40 text

40 w ,VCFSOFUFTͱͯ͠͸ਖ਼͘͠ಈ͍͍ͯΔ͕ɺ์ஔ͢Δͱো֐ʹܨ͕Γ͔ Ͷͳ͍΋ͷ w ࣗݾճ෮͠ͳ͍৔߹͕ଟ͍ w ϦιʔεͷεςʔλεΛݟΔͱώϯτ͕͋Δ ௨஌Ϩϕϧl/PUJDFzͷରԠ

Slide 41

Slide 41 text

௨஌Ϩϕϧ"MFSU

Slide 42

Slide 42 text

42 w ௨஌Ϩϕϧ͕l"MFSUzͷϝτϦΫε͸ɺ௨஌͕ಧ͍ͨͱ͖ʹ͸Կ͔͠Β ϢʔβʔʹӨڹ͕ग़࢝Ί͍ͯΔՄೳੑ͕͋Δ w ؾ෇͍ͨ࣌఺Ͱଈ࠲ʹରԠ͢Δ͜ͱ͕ٻΊΒΕΔ w ࣗݾճ෮Ͱ͖͍ͯͳ͍ঢ়ଶʹ͍ؕͬͯΔ ௨஌Ϩϕϧl"MFSUz

Slide 43

Slide 43 text

43 w Ϋϥελ w LVCFTZTUFNʹΠϯετʔϧ͞Εͨίϯϙʔωϯτ w ,VCFSOFUFTΛՔಇͤ͞Δͷʹඞཁͳίϯϙʔωϯτ͕ಈ͍͍ͯΔ ͜ͱΛ؂ࢹ͢Δ w ࣗ෼ͨͪͰΠϯετʔϧͨ͠ίϯϙʔωϯτ΋ؚΉ w ͜ΕΒͷίϯϙʔωϯτ͕ಈ͍͍ͯͳ͍ͱࣗݾճ෮΋͠ͳ͍ ௨஌Ϩϕϧl"MFSUzͷ۩ମྫ

Slide 44

Slide 44 text

44 w ίϯςφ w %FQMPZNFOUͷ%FTJSFEͱ"WBJMBCMF w σϓϩΠ࣌ͳͲΛআ͖ɺৗʹҰக͢Δ͜ͱ͕ظ଴͞ΕΔ w ϦιʔεͷׂΓ౰͕ͯ͏·͘ಈ͍͍ͯͳ͍৔߹ͳͲ΋ݕ஌Ͱ͖Δ ௨஌Ϩϕϧl"MFSUzͷ۩ମྫ

Slide 45

Slide 45 text

45 w ࣗݾճ෮Ͱ͸෮چ͠ͳ͍ঢ়ଶͳͷͰਓͷϑΥϩʔ͕ඞཁ w ϩά΍ϝτϦΫε͔ΒͲͷίϯϙʔωϯτͰԿ͕ى͖͍ͯΔ͔೺Ѳ͢Δ w ͦͷͨΊʹ΋ϩά͸ҰՕॴʹूΊ͓ͯ͘΂͖ ௨஌Ϩϕϧl"MFSUzͷରԠ

Slide 46

Slide 46 text

·ͱΊ 04 Section

Slide 47

Slide 47 text

47 w ,VCFSOFUFTͷΞʔΩςΫνϟΛΑ͘ཧղ͔ͯ͠Β؂ࢹΛ࢝ΊΔ w Ͳͷ؂ࢹπʔϧΛ࢖͏͔͸ͦͷޙ w ·ͣ͸ࣗݾճ෮Λҡ࣋ͤ͞ΔͨΊͷ؂ࢹ w ϚωʔδυαʔϏεΛར༻ͯ͠ӡ༻ͷෛՙΛԼ͛Δ w ϝτϦΫεͷॏཁ౓Λҙࣝͯ͠ɺ௨஌ϨϕϧΛద੾ʹ෼͚Δ ·ͱΊ

Slide 48

Slide 48 text

͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠

Slide 49

Slide 49 text

@manabusakai