Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetes Handson

0aac627116c6e2a87b9ae179500801df?s=47 stormcat24
December 25, 2018

Kubernetes Handson

0aac627116c6e2a87b9ae179500801df?s=128

stormcat24

December 25, 2018
Tweet

Transcript

  1. Kubernetes Handson 2018.12.25

  2. XIPJT ‣ "LJOPSJ:BNBEB ‣ ೖࣾ ‣ '3&4)-*7& ‣ ٕज़ຊ෦0QFO4BB44UVEJP5FDI-FBE TUPSNDBU

  3. εϥΠυͷݟग़͠ʹ ͕͍͍ͭͯΔͱ͜Ζ͸࣮ࡍʹ օ͞ΜʹखΛಈ͔ͯ͠΋Β͏ͱ͜ΖͰ͢

  4. IUUQTHJUIVCDPNTUPSNDBULVCFSOFUFTIBOETPO ϩʔΧϧʹ$MPOF͓͍͍ͯͯͩ͘͠͞

  5. ίϚϯυΛࣸܦ͢Δͷ͕ͭΒ͍ʂ ͱ͍͏ͦ͜ͷ͋ͳͨ

  6. 3&"%.&Λ͝ཡ͍ͩ͘͞

  7. PVUMJOF ‣ ͳͥࠓ,VCFSOFUFTΛ΍Δͷ͔ ‣ -PDBMͰ͍͍ײ͡ͷ,VCFSOFUFT։ൃ؀ڥΛଗ͑Δ ‣ ,VCFSOFUFTͷجຊతͳϦιʔεɺΞϓϦέʔγϣϯͷσϓϩΠ ‣ ٳܜ ‣

    )FMNͰΞϓϦέʔγϣϯΛύοέʔδϯά͢Δ ‣ TLBGGPMEͰ͍͍ײ͡ʹ։ൃΛճͯ͠ΈΔ ‣ ͦͷଞϢʔεέʔεɺศརπʔϧ঺հ ‣ ༧උ࣌ؒɾ࣭ٙλΠϜ
  8. ͳͥࠓ,VCFSOFUFTΛ΍Δͷ͔

  9. "ίϯςφΦʔέετϨʔγϣϯͷσϑΝΫτ͔ͩΒ σϑΝΫτΛબͿͷ͸େࣄ ૊৫ʹ͓͚Δϊ΢ϋ΢ͷू໿

  10. "Φʔϓϯιʔε͔ͩΒ ϗϫΠτϘοΫε ׆ൃͳ։ൃίϛϡχςΟ ๛෋ͳΤίγεςϜ ߴ͍֦ுੑ

  11. "Ϛωʔδυͷॆ࣮ (PPHMF,VCFSOFUFT&OHJOF (,&  "NB[PO&MBTUJD$POUBJOFS4FSWJDFGPS,VCFSOFUFT &,4  "[VSF,VCFSOFUFT4FSWJDF ",4

  12. σϑΝΫτͰ͸͋Δ͕ ֶशͷෑډΛ௿͘͸ແ͍ ࣗ༝౓ͷߴ͞ނͷ֓೦ͷଟ͞ มԽͷૣ͍ྖҬނͷֶशͷ೉͠͞FUD

  13. %PDLFS,VCFSOFUFT ࣮ફίϯςφ։ൃೖ໳ ٕज़ධ࿦ࣾʣ େώοτޚྱ ઈࢍൃചத

  14. ࠓ೔͸͜ͷຊΛϕʔεʹ ࠷଎Ͱ,VCFSOFUFTΛ׆༻ͨ͠ ։ൃΠϝʔδΛ௫ΜͰ΋Β͍ɺ ͔ͭ࠷ۙͷτϨϯυͷ೺Ѳ·ͰΛ໨ࢦ͠·͢

  15. -PDBMͰ͍͍ײ͡ͷ ,VCFSOFUFT։ൃ؀ڥΛଗ͑Δ

  16. %PDLFS%FTLUPQ ‣ %PDLFSGPS8JOEPXT.BDͷ͜ͱ ‣ ࠷ۙ͸%PDLFS%FTLUPQͱݺͿΒ͍͠ ‣ μ΢ϯϩʔυʹ͸%PDLFS4UPSF΁ͷϩάΠϯඞཁ ‣ ͔Β,VCFSOFUFT࿈ܞ͕4UBCMFʹ

  17. ઃఆը໘Λ։͘

  18. $16ɺϝϞϦׂΓ౰ͯ֬ೝ

  19. ,VCFSOFUFTઃఆ

  20. ,VCFSOFUFTJTTUBSUJOH

  21. ,VCFSOFUFTJTSVOOJOH

  22. LVCFDUM ‣ ͘΂͠ʔͯ͌ʔ͑Δ ‣ ,VCFSOFUFTΫϥελΛૢ࡞͢ΔͨΊͷίϚϯυϥΠϯπʔϧ LVCFDUMDMVTUFSJOGP ,VCFSOFUFTNBTUFSJTSVOOJOHBUIUUQTMPDBMIPTU ,VCF%/4J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29. ,VCFSOFUFTͷ جຊ֓೦ɹ

  30. ίϯςφΦʔέετϨʔγϣϯπʔϧͷҰͭ

  31. ΦʔέετϨʔγϣϯͷ౷཰͢Δ.BTUFS

  32. ,VCFSOFUFTͰ͸ ίϯςφΦʔέετϨʔγϣϯٕज़Λ࣮ݱ͢ΔͨΊͷ ༷ʑͳϦιʔεʢ෦඼ʣΛ૊Έ߹Θͤͯ ΞϓϦέʔγϣϯΛ࣮ߦ͢Δ

  33. ,VCFSOFUFTͷϦιʔε %FQMPZNFOU /BNFTQBDF 4FSWJDF *OHSFTT $POGJH.BQ %BFNPO4FU 4UBUFGVM4FU +PC 1PE

    3FQMJDB4FU +PC $SPO+PC ˞΄ΜͷҰ෦Ͱ͢
  34. 1PE

  35. 1PE ‣ ίϯςφͷू߹ମͷ୯ҐͰɺগͳ͘ͱ΋ͭͷίϯςφΛ࣋ͭ ‣ ίϯςφಉ͕࢜ີ݁߹Ͱ͋Δํ͕౎߹͕ྑ͍৔߹ɺ1PEͱͯ͠ ෳ਺छίϯςφΛ·ͱΊͯσϓϩΠ͢Δ ‣ ,VCFSOFUFTͰ͸ίϯςφ୯ҐͰ͸ͳ͘ɺ1PE୯ҐͰσϓϩΠ͞ ΕΔ

  36. 1PEͷ഑ஔΠϝʔδ

  37. /PEFލ͗͸/(

  38. 1PEΛ࡞੒ ‣ OHJOYͱFDIPΛฦ͢ΞϓϦέʔγϣϯ͔Β੒Δ1PE ‣ LVCFSOFUFTIBOETPOSFTPVSDFTJNQMFFDIPZBNM ‣ ϚχϑΣετϑΝΠϧͱݺ͹ΕΔ,VCFSOFUFTͷϦιʔεఆٛΛLVCFDUMͰ ద༻͢Δ͜ͱͰɺϦιʔεͷ࡞੒ɾमਖ਼Λߦ͏

  39. 1PEͷϚχϑΣετϑΝΠϧ BQJ7FSTJPOW LJOE1PE NFUBEBUB OBNFTJNQMFFDIP TQFD DPOUBJOFST OBNFOHJOY JNBHFHJIZPEPDLFSOHJOYQSPYZMBUFTU FOW

    OBNF#"$,&/%@)045 WBMVFMPDBMIPTU QPSUT DPOUBJOFS1PSU OBNFFDIP JNBHFHJIZPEPDLFSFDIPMBUFTU QPSUT DPOUBJOFS1PSU
  40. 1PEΛ࡞੒ 1PEͷ࡞੒ LVCFDUMBQQMZGSFTPVSDFTJNQMFFDIPZBNM QPETJNQMFFDIPDSFBUFE ࡞੒ͨ͠1PEͷ֬ೝ LVCFDUMHFUQPE /".&3&"%:45"5643&45"354"(& TJNQMFFDIP3VOOJOHN

  41. 1PEͷૢ࡞ FDIPίϯςφͷϩάʢඪ४ग़ྗʣͷ֬ೝ LVCFDUMMPHTGTJNQMFFDIPDFDIP TUBSUTFSWFS OHJOYίϯςφʹ44)ϩάΠϯͬΆ͍͜ͱΛ͢ΔʢTIͷ࣮ߦʣ LVCFDUMFYFDJUTJNQMFFDIPTIDOHJOY /".&3&"%:45"5643&45"354"(& TJNQMFFDIP3VOOJOHN 1PEΛ࡟আ LVCFDUMEFMFUFQPETJNQMFFDIP

    QPETJNQMFFDIPEFMFUFE
  42. 1PE಺Ͱͷଞͷίϯςφͷࢀর ,VCFSOFUFTͰ͸1PEʹ΋*1ΞυϨε͕ৼΒΕΔʢ$MVTUFS*1ʣ 1PEࣗ਎͕ͭͷԾ૝ϚγϯͷΑ͏ͳ΋ͷ FDIPίϯςφͷϙʔτ͸ɺ OHJOY͔Β͸MPDBMIPTUͱݟ͑Δ

  43. 3FQMJDBTUͱ%FQMPZNFOU

  44. 3FQMJDB4FU ‣ 1PE໊͸Ϋϥελ಺ͰϢχʔΫɻಉ໊ͷ1PE͸࡞੒Ͱ͖ͳ͍ ‣ TJNQMFFDIPΛෳ੡͢Δ৔߹ɺTJNQMFFDIPͷΑ͏ͳ໊લͰ࡞ ੒͠ͳ͍ͱ͍͚ͳ͍ ‣ ࡞Γ͍ͨ਺͚ͩͷ1PEͷϚχϑΣετΛ༻ҙ͢Δͷ͸໘౗ 1PEͷෳ੡Λαϙʔτ͢Δ3FQMJDB4FU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QMFFDIPT /".&%&4*3&%$633&/53&"%:"(& SFQMJDBTFUFYUFOTJPOTTJNQMFFDIPEECGCT /".&3&"%:45"5643&45"354"(& QPETJNQMFFDIPEECGCHKY3VOOJOHT QPETJNQMFFDIPEECGCE[G3VOOJOHT QPETJNQMFFDIPEECGCRHU⒎3VOOJOHT
  49. %FQMPZNFOUͷ࡟আ %FQMPZNFOUͷ࡞੒ LVCFDUMEFMFUFGSFTPVSDFTJNQMFFDIPEFQMPZNFOUZBNM EFQMPZNFOUBQQTTJNQMFFDIPDSFBUFE ࡟আͨ͠%FQMPZNFOU 3FQMJDB4FU 1PEͷ֬ೝ LVCFDUMHFUEFQMPZ ST QPETFMFDUPSBQQFDIP

    /PSFTPVSDFTGPVOE
  50. 4FSWJDF

  51. 4FSWJDF ‣ 1PEͷू߹ʹର͢ΔϧʔςΟϯά΍αʔϏεσΟεΧόϦػೳ Λఏڙ͢ΔϦιʔε ‣ ಉ͡छྨͷෳ਺1PEʹର͠ɺτϥϑΟοΫΛྲྀͨ͢Ίͷϩʔυ όϥϯαʔͱͯ͠ͷػೳ΋࣋ͭ ‣ 4FSWJDF͔ΒͷτϥϑΟοΫͷసૹ͸ɺઃఆ͞ΕͨTFMFDUPSTͷ ϥϕϧͷ஋ʹΑܾͬͯఆ͞ΕΔ

    ‣ ,VCFSOFUFTΫϥελ಺෦Ͱ͸ɺ4FSWJDFͷ໊લͰ4FSWJDFʹ໊લ ղܾͰ͖Δ
  52. 4FSWJDF͔Β1PEͷݟ͚ͭํ

  53. σΟεΧόϦͷ࣮ݧ छྨͷ%FQMPZNFOUΛ࡞੒ LVCFDUMBQQMZGSFTPVSDFTJNQMFFDIPEFQMPZNFOUTQSJOHZBNM LVCFDUMBQQMZGSFTPVSDFTJNQMFFDIPEFQMPZNFOUTVNNFSZBNM ࡞੒ͨ͠%FQMPZNFOUͷ֬ೝ LVCFDUMHFUEFQMPZTFMFDUPSBQQFDIP /".&%&4*3&%$633&/56150%"5&"7"*-"#-&"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PPHMF $MPVE%/4΍"843PVUFʹࣗಈͰ%/4ϨίʔυΛ௥ՃͰ͖Δ ‣ IUUQTHJUIVCDPNLVCFSOFUFTJODVCBUPSFYUFSOBMEOT

  64. 8FCΞϓϦέʔγϣϯͷجຊతͳྲྀΕ ‣ ΞϓϦέʔγϣϯΛίϯςφԽ͢Δ ‣ %FQMPZNFOUΛͭ͘Δ ‣ ΞϓϦέʔγϣϯͷڍಈ͸؀ڥม਺Ͱ ‣ ඞཁʹԠͯ͡$POGJH.BQ΋ ‣

    4FSWJDFΛͭ͘Δ ‣ *OHSFTTΛͭ͘Δ
  65. ʢࢀߟʣ࣮ફతͳ8FCΞϓϦέʔγϣϯͷߏ੒

  66. ٳܜ

  67. )FMNͰΞϓϦέʔγϣϯΛ ύοέʔδϯά͢Δ

  68. 8FCΞϓϦʹඞཁͳϦιʔε %FQMPZNFOU *OHSFTT 4FSWJDF 4FSWJDFͷΫϥελ֎΁ͷެ։ 1PE΁ͷϧʔςΟϯάɺαʔϏεσΟεΧόϦ 3FQMJDB4FUੈ୅؅ཧɺ1PEͷੜ੒ 3FQMJDB4FU 1PE

  69. ͜Ε͚ͩͷϚχϑΣετϑΝΠϧ͕ඞཁ JOHSFTTZBNM TFSWJDFZBNM EFQMPZNFOUZBNM

  70. ΋͠ෳ਺؀ڥ͋Δ৔߹͸ʁ EFQMPZNFOUZBNM TFSWJDFZBNM JOHSFTTZBNM EFWFMPQNFOU TUBHJOH QSPEVDUJPO EFQMPZNFOUZBNM TFSWJDFZBNM JOHSFTTZBNM

    EFQMPZNFOUZBNM TFSWJDFZBNM JOHSFTTZBNM
  71. ॏෳͷଟ͍ϚχϑΣετΛ ෳ਺༻ҙ͢Δ͜ͱʹͳΔ ҧ͏ͷ͸*OHSFTTͷυϝΠϯ΍ %FQMPZNFOUͷ؀ڥม਺͚ͩͩͬͨΓɾɾɾ

  72. ϚχϑΣετͷύοέʔδͷ࢓૊Έ͕ඞཁ

  73. )FMNͱ͸ ‣ ,VCFSOFUFTͷύοέʔδϚωʔδϟ ‣ ϚχϑΣετϑΝΠϧςϯϓϨʔτΛ$IBSUͰύοέʔδϯάɹ

  74. None
  75. )FMNηοτΞοϓ )PNFCSFXͳΒ͹ CSFXJOTUBMMLVCFSOFUFTIFMN όΠφϦμ΢ϯϩʔυͳΒ͹ IUUQTHJUIVCDPNIFMNIFMNSFMFBTFTUBHW IFMNॳظԽʢ5JMMFSͱ͍͏1PE͕σϓϩΠ͞ΕΔʣ IFMNJOJUXBJU IFMN֬ೝ IFMNWFSTJPO $MJFOUWFSTJPO7FSTJPO\4FN7FSW

    (JU$PNNJUzBDz (JU5SFF4UBUFDMFBO^ 4FSWFSWFSTJPO7FSTJPO\4FN7FSW (JU$PNNJUzBDz (JU5SFF4UBUFDMFBO^
  76. $IBSUͷݕࡧ $IBSUͷϦϙδτϦ֬ೝ IFMNSFQPMJTU /".&63- TUBCMFIUUQTLVCFSOFUFTDIBSUTTUPSBHFHPPHMFBQJTDPN MPDBMIUUQDIBSUT ϦϙδτϦ͔Βద౰ʹ$IBSUݕࡧ IFMNTFBSDISFENJOF /".&$)"357&34*0/"117&34*0/%&4$3*15*0/ TUBCMFSFENJOF"qFYJCMFQSPKFDUNBOBHFNFOUXFCBQQMJDBUJPO

  77. HJUIVCDPNIFMNDIBSUT

  78. $IBSUͷߏ଄ USFF ᵓᴷᴷ$IBSUZBNM ᵓᴷᴷ08/&34 ᵓᴷᴷ3&"%.&NE ᵓᴷᴷSFRVJSFNFOUTMPDL ᵓᴷᴷSFRVJSFNFOUTZBNM ᵓᴷᴷUFNQMBUFT ᴹᵓᴷᴷ/05&4UYU ᴹᵓᴷᴷ@IFMQFSTUQM

    ᴹᵓᴷᴷEFQMPZNFOUZBNM ᴹᵓᴷᴷJOHSFTTZBNM ᴹᵓᴷᴷQECZBNM ᴹᵓᴷᴷQWDZBNM ᴹᵓᴷᴷTFDSFUTZBNM ᴹᵋᴷᴷTWDZBNM ᵋᴷᴷWBMVFTZBNM σϑΥϧτWBMVFϑΝΠϧ
  79. None
  80. σϑΥϧτ஋্ॻ͖༻ͷZBNM SFENJOF6TFSOBNFHJIPO SFENJOF1BTTXPSEHJIPO SFENJOF-BOHVBHFKB JOHSFTT FOBCMFEUSVF IPTUT OBNFSFENJOFIBOETPOMPDBM UMTGBMTF *OHSFTT༗ޮԽ

    *OHSFTTͷ)PTU
  81. SFENJOFσϓϩΠ σϑΥϧτ஋Λ্ॻ͖ͯ͠σϓϩΠ IFMNJOTUBMMGIFMNSFENJOFSFENJOFWBMVFTZBNMOBNFSFENJOFTUBCMFSFENJOF IFMNͰ࡞ΒΕͨϦιʔεΛ֬ೝ LVCFDUMHFUJOH TWD QPEMSFMFBTFSFENJOF /".&)0454"%%3&4410354"(& JOHSFTTFYUFOTJPOTSFENJOFIBOETPOMPDBMSFENJOFSFENJOFIBOETPOMPDBMMPDBMIPTU N

    /".&5:1&$-645&3*1&95&3/"-*11035 4 "(& TFSWJDFSFENJOFNBSJBEC$MVTUFS*1OPOF5$1N TFSWJDFSFENJOFSFENJOF-PBE#BMBODFSQFOEJOH5$1N /".&3&"%:45"5643&45"354"(& QPESFENJOFNBSJBEC3VOOJOHN QPESFENJOFSFENJOFCEYG[W3VOOJOHN
  82. SFENJOFʹΞΫηε IPTUTͰ*OHSFTTʹઃఆͨ͠υϝΠϯΛ௥Ճ TVEPWJNFUDIPTUT SFENJOFIBOETPOMPDBM

  83. SFENJOFఫڈ IFMNͰEFQMPZͨ͠ϦϦʔεҰཡ IFMNMT /".&3&7*4*0/61%"5&%45"564$)"35"117&34*0/ /".&41"$& SFENJOF.PO%FD%&1-0:&%SFENJOF EFGBVMU IPTUTͰ*OHSFTTʹઃఆͨ͠υϝΠϯΛ௥Ճ IFMNEFMQVSHFSFENJOF SFMFBTFSFENJOFEFMFUFE

  84. ΧελϜ$IBSU

  85. ΧελϜ$IBSUͷ࡞੒ ‣ IFMNDSFBUFDIBSU໊Ͱ$IBSUͷςϯϓϨʔτΛ࡞੒Ͱ͖Δ ‣ EFQMPZNFOUZBNM TFSWJDFZBNM JOHSFTTZBNM͸σϑΥϧτͰ༻ҙ͞Εͯ Δ ‣ σϑΥϧτWBMVFϑΝΠϧ΋σϑΥϧτͰ࡞੒͞ΕΔ

    ‣ TJNQMFFDIPͷ$IBSUΛ༻ҙͨ͠ ‣ LVCFSOFUFTIBOETPOIFMNTJNQMFFDIP
  86. WBMVFTZBNMΛ্ॻ͖ͯ͠ΈΑ͏ ‣ ՝୊ɿ1PEΛͭىಈͯ͠ΈΔ ‣ ՝୊ɿ*OHSFTTΛ༗ޮʹ͠ɺద౰ͳυϝΠϯΛ౰ͯͯΈΔɹ IFMNJOTUBMMG্ॻ͖༻ͷZBNMͷύεOBNFϦϦʔε໊IFMNTJNQMFFDIP

  87. ղ౴ SFQMJDB$PVOU JOHSFTT FOBCMFEUSVF QBUIT  IPTUT IPHFIBOETPOMPDBM IFMNJOTUBMMGIPHFZBNMOBNFIPHFIFMNTJNQMFFDIP

  88. )FMNίπ ‣ TUBCMFʹ͋Δ$IBSU͸σϑΥϧτWBMVFϑΝΠϧΛݟΕ͹ɺΧελϚΠζͷϙΠϯ τ͕Θ͔Δ ‣ ಈ͖Λਂ۷Γ͚ͨΕ͹ςϯϓϨʔτ΋ݟΔ ‣ ͓٬༷͕ඞཁͳιϑτ΢ΣΞ͸͍͍ͨͯ4UBCMFʹ͋Γ·͢Αʁ ‣ ,VCFSOFUFT্ʹ)FMNΛ࢖ͬͯߏங͢ΔͱָͰ͢Ͷ

    ‣ ΧελϜ$IBSU͸ςϯϓϨʔτʹཔΔ ‣ ϙʔλϏϦςΟΛߴΊΔͨΊʹɺςϯϓϨʔτ΁ύϥϝʔλͷຒΊࠐΈɺσϑΥ ϧτWBMVFΛ੔උ͢Δ ‣ IFMNMJOU΋׆༻͠Α͏
  89. TLBGGPMEͰ͍͍ײ͡ʹ ։ൃΛճͯ͠ΈΔ

  90. ,VCFSOFUFTͷ։ൃΛճ͢جຊϑϩʔ ‣ ίʔυΛॻ͘ ‣ %PDLFSΠϝʔδϏϧυ ‣ $*·Θ͢PSϩʔΧϧϏϧυ ‣ %FQMPZNFOUߋ৽ ‣

    ৽͍͠1PEʹϩʔϦϯάΞοϓσʔτ ͦͦ͜͜μϧ͍ τϥΠΞϯυΤϥʔ͕໘౗ɹ
  91. ίʔυΛ௚ͨ͠Β 1PE͕࠶σϓϩΠ͞Εͯ΄͍͠

  92. 4LBGGPMEͱ͸ ‣ IUUQTHJUIVCDPN(PPHMF$POUBJOFS5PPMTTLBGGPME ‣ CSFXJOTUBMMTLBGGPME ‣ (PPHMFۘ੡ ‣ ,VCFSOFUFTΞϓϦέʔγϣϯͷϏϧυɾσϓϩΠͱ͍ͬͨ܁Γฦ͠ߦΘ ΕΔجຊϫʔΫϑϩʔΛαϙʔτ͢ΔͨΊͷπʔϧ

    ‣ ,VTUPNJ[F )FMN #B[FM +JC %PDLFS$PNQPTF౳ͱ࿈ܞՄೳ
  93. ଟ͘ͷϢʔεέʔεʹରԠʂ

  94. 1PEͷΦʔτεέʔϧͬͯͲ͏͢Δͷ )PSJ[POBM1PE"VUPTDBMFS )1"

  95. )PSJ[POBM1PE"VUPTDBMFS )1" ‣ 1PEͷϦιʔε࢖༻཰ʹԠͯ͡ɺ1PE਺ΛࣗಈͰ૿ݮͤ͞ΔϦιʔε ‣ ࣮ӡ༻Ͱ͸SFQMJDB$PVOUͰ͸ͳ͘ɺ)1"Λઃఆ͢Δ ‣ $16΍.FNPSZ࢖༻཰ͷᮢ஋ʹΑͬͯɺ1PE૿ݮͷΠϕϯτ͕ൃੜ

  96. )1"ͷϚχϑΣετ apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: echo spec: scaleTargetRef:

    apiVersion: apps/v1 kind: Deployment name: echo minReplicas: 1 maxReplicas: 3 metrics: - type: Resource resource: name: cpu targetAverageUtilization: 40
  97. ϊʔυ͕଍Γͳ͍৔߹͸Ͳ͏͢Δʁ ,VCFSOFUFT"VUPTDBMFS

  98. ,VCFSOFUFT"VUPTDBMFS ‣ IUUQTHJUIVCDPNLVCFSOFUFTBVUPTDBMFS ‣ ඞཁͳ਺ͷ1PEΛ഑ஔͰ͖Δ͚ͩͷϚγϯϦιʔε͕ແ͍৔߹ʹɺϊʔυ Λ૿΍͢࢓૊Έ ‣ ϚωʔδυͰ͸جຊతʹඪ४ରԠ ‣ ඇϚωʔδυͰ͸)FMNͰೖΕ·͠ΐ͏

    ‣ IFMNJOTUBMMOBNFTQBDFLVCFTZTUFNOBNFDMVTUFSBVUPTDBMFS TUBCMFDMVTUFSBVUPTDBMFS ‣ "84ͩͱ"VUP4DBMJOH(SPVQͷ3BUF-JNJUى͜͠΍͘͢ͳΔͷͰ஫ҙ
  99. ศརπʔϧ

  100. TUFSO ‣ ίϚϯυϥΠϯͰ1PEͷϩάΛUBJMͰ͖Δπʔϧ ‣ IUUQTHJUIVCDPNXFSDLFSTUFSO ‣ ϥϕϧʹҰகͨ͠1PEͷϩάΛӾཡͰ͖Δ

  101. LBOJLP ‣ ,VCFSOFUFTΫϥελ಺Ͱ%PDLFSΠϝʔδΛϏϧυ͢ΔͨΊͷπʔϧ ‣ IUUQTHJUIVCDPN(PPHMF$POUBJOFS5PPMTLBOJLP ‣ %PDLFS%BFNPOແ͠ͰϏϧυͰ͖Δ

  102. ͦͷଞࡉ͔͍ͷ ‣ LVCFDUY ‣ IUUQTHJUIVCDPNBINFUCLVCFDUY ‣ ૢ࡞ର৅ͷΫϥελΛ੾Γସ͑΍͘͢͢Δπʔϧ ‣ LVCFQSPNQU ‣

    IUUQTHJUIVCDPNDCBUBLVCFQSPNQU ‣ ΦʔτίϯϓϦʔτͰ͖ΔLVCFDUMతͳ
  103. ༧උ࣌ؒɾ࣭ٙλΠϜ