我々は Kubernetes の何を監視すればいいのか? / CloudNative Days Kansai 2019

Dacd98e0fcfc478b24f9cd7ec9208904?s=47 Manabu Sakai
November 28, 2019

我々は Kubernetes の何を監視すればいいのか? / CloudNative Days Kansai 2019

Dacd98e0fcfc478b24f9cd7ec9208904?s=128

Manabu Sakai

November 28, 2019
Tweet

Transcript

  1. 6.

    6 ૑ۀ͔Β*10·Ͱɺதখاۀ׆ੑԽͷͨΊͷαʔϏεΛҰؾ௨؏Ͱఏڙ ձࣾ֓ཁ ❂ೲ੫͢Δ ⾭ҭͯΔ ↻ӡӦ͢Δ ✩͸͡ΊΔ ձࣾઃཱGSFFF ։ۀGSFFF Ϋϥ΢υձܭιϑτGSFFF

    ਓࣄ࿑຿GSFFF ϚΠφϯόʔ؅ཧGSFFFؚΉ Ϋϥ΢υਃࠂGSFFF 161ԯ603ສԁ (ࢿຊ४උۚ౳ؚΉ) ैۀһ਺ ࣄۀ಺༰ Ϋϥ΢υܕόοΫΦϑΟεαʔϏεͷ։ൃɾൢച ࢿຊۚ ઃཱ೥݄೔ 2012೥7݄ 506໊ʢ2019೥6݄຤࣌఺ʣ 2019೥ʮಇ͖͕͍ͷ͋Δձࣾʯ ϥϯΩϯά4Ґ
  2. 15.

    15 w *NNVUBCMF*OGSBTUSVDUVSF w Ұ౓࡞ͬͨ΋ͷ͸มߋͤͣʹ࡞Γ௚͢ w એݴతઃఆ w ͋Δ΂͖ঢ়ଶΛએݴ͠ɺͦͷঢ়ଶʹऩଋͤ͞Δ w

    ࣗݾճ෮ w ্هͷಛ௃Λੜ͔͠ɺਓखΛհͣ͞ʹ͋Δ΂͖ঢ়ଶʹ໭͢ ,VCFSOFUFTͷಛ௃
  3. 16.

    16 ,VCFSOFUFTͷΞʔΩςΫνϟ apiserver etcd scheduler controller manager kubelet container runtime

    .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime
  4. 17.

    17 w ͜Ε·Ͱͷ؂ࢹ w ޡͬͨঢ়ଶΛݕ஌ͯ͠ਓ͕ؾ෇ͨ͘Ίͷ؂ࢹ w ΦϖϨʔγϣϯ͢Δͷ͸ਓ͕લఏʢҰ෦͸ࣗಈԽʣ w ,VCFSOFUFTͷ؂ࢹ w

    ࣗݾճ෮͕ਖ਼͘͠ಈ͍͍ͯΔ͔֬ೝ͢ΔͨΊͷ؂ࢹ w ΦϖϨʔγϣϯ͢Δͷ͸,VCFSOFUFTࣗ਎ ॏཁͳͷ͸,VCFSOFUFTͷࣗݾճ෮ྗΛҡ࣋͠ଓ͚Δ͜ͱɻ ͜Ε·Ͱͷ؂ࢹͱͷҧ͍
  5. 19.

    19 ,VCFSOFUFTͷΞʔΩςΫνϟʢ࠶ܝʣ apiserver etcd scheduler controller manager kubelet container runtime

    .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime ؂ࢹͱ͍͏ͱ ݸʑͷίϯςφʹ஫໨ ͕ͪ͠ʜ
  6. 20.

    20 ,VCFSOFUFTͷΞʔΩςΫνϟʢ࠶ܝʣ apiserver etcd scheduler controller manager kubelet container runtime

    .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime ·ͣݟΔ΂͖͸ࣗݾ ճ෮Λࢧ͑Δͱ͜Ζ
  7. 26.

    26 w ,VCFSOFUFTΫϥελΛ҆ఆతʹӡ༻͠ଓ͚Δͷ͸େม w ࠷৽όʔδϣϯ΁ͷ௥ै w ίϯτϩʔϧϓϨʔϯͷ৑௕Խ w ֶशίετͷߴ͞ w

    ߏஙͰ͖Δ㱠ӡ༻Ͱ͖Δ w SFG.BDLFSFMʹ͓͚Δ,VCFSOFUFTར༻ͷऔ૊Έͱ͜Ε͔Β Ϋϥελӡ༻͕ϏδωεͷࠩผԽཁҼʹͳΒͳ͍ͷͰ͋Ε͹ɺੵۃతʹϚ ωʔδυαʔϏεΛ׆༻͢Δɻ ,VCFSOFUFTΫϥελͷࣗલӡ༻͸େม
  8. 27.

    27 ,VCFSOFUFTͷΞʔΩςΫνϟʢ࠶ܝʣ apiserver etcd scheduler controller manager kubelet container runtime

    .BTUFSίϯϙʔωϯτ /PEFίϯϙʔωϯτ kubelet container runtime ࣗݾճ෮Λࢧ͑Δͱ ͜ΖΛ೚ͤΔ
  9. 30.

    30 ϝτϦΫεͷॏཁ౓Λ෼ྨ͢ΔͨΊʹɺ௨஌ϨϕϧͰ࣍ͷͭʹ෼ྨɻ w /POF w ϝτϦΫε͸ऩू͢Δ͕௨஌͠ͳ͍ w /PUJDF w ϝτϦΫεΛऩू͠ɺ஫ҙשىϨϕϧͰ௨஌͢ΔɻۓٸͷରԠΛඞཁ

    ͱͤͣɺ໷ؒͷΦϯίʔϧ͸͠ͳ͍ w "MFSU w ϝτϦΫεΛऩू͠ɺܯࠂϨϕϧͰ௨஌͢ΔɻਓʹΑΔଈ࠲ͳରԠΛ ඞཁͱ͠ɺ໷ؒ͸Φϯίʔϧ͢Δ ؂ࢹͷ௨஌Ϩϕϧ
  10. 34.

    34 w Ϋϥελ w ϊʔυ਺ w ϊʔυ਺Λద੾ͳ୆਺ʹҡ࣋͢Δͷ͸$MVTUFS"VUPTDBMFSͷ໾ׂ w 1PE਺ w

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

    38 w Ϋϥελ w ,VCFSOFUFTͷόʔδϣϯ w &0-Λܴ͑ͨόʔδϣϯΛ࢖͍ͬͯͳ͍͔ w ϑΝΠϧγεςϜ࢖༻཰ w

    1VMMͨ͠%PDLFSΠϝʔδ͕ཷ·Γ͕ͪ w ϩάΤʔδΣϯτͷΤϥʔ w %BFNPO4FUͰ഑ஔͨ͠ϩάΤʔδΣϯτ͕ΤϥʔʹͳΔͱɺίϯ ςφͷϩάΛܽଛ͔͠Ͷͳ͍ ௨஌Ϩϕϧl/PUJDFzͷ۩ମྫ
  12. 39.

    39 w ίϯςφ w 1PE΍%FQMPZNFOUͷΠϕϯτ w 00.,JMMFE $SBTI-PPQ#BDL0GG 1VMM*NBHF&SSPSͳͲ w

    1PEͷϦελʔτճ਺ w ٸʹϦελʔτճ਺͕૿͍͑ͯͳ͍͔ w ίϯςφ഑ஔͷภΓ w ,VCFSOFUFTͷεέδϡʔϥ͸1PEͷ࡞੒࣌ʹ͔͠εέδϡʔϦϯ άΛߦΘͳ͍ ௨஌Ϩϕϧl/PUJDFzͷ۩ମྫ