Private Azure Kubernetes Service cluster を触ってみよう♪

E24ebbedcae292dc8e4b56186e082220?s=47 iganari
March 25, 2020

Private Azure Kubernetes Service cluster を触ってみよう♪

2020年3月25日に開催された、第26回 Tokyo Jazug Night での発表資料です
https://jazug.connpass.com/event/165186/

E24ebbedcae292dc8e4b56186e082220?s=128

iganari

March 25, 2020
Tweet

Transcript

  1. 1SJWBUF"[VSF,VCFSOFUFT 4FSWJDFDMVTUFS Λ৮ͬͯΈΑ͏̇ ୈճ 5PLZP+B[VH/JHIU IUUQTKB[VHDPOOQBTTDPNFWFOU KB[VH

  2. ΞδΣϯμͱ஫ҙ఺ ஫ҙ఺ Ø هࡌ͍ͯ͠Δ৘ใ͸ ͷ࣌఺ͷ৘ใͰ͢ ࿩͢͜ͱ Ø 1SJWBUF"[VSF,VCFSOFUFT4FSWJDFDMVTUFS ʹ͍ͭͯ ʹ

    (" Ø ݸਓతʹ஫໨͍ͯ͠Δ৽ػೳʹ͍ͭͯ ࿩͞ͳ͍͜ͱ Ø "[VSFʹ͍ͭͯͷৄࡉઆ໌ Ø ,VCFSOFUFTʹ͍ͭͯͷৄࡉઆ໌ Ø "[VSF,VCFSOFUFT4FSWJDF ",4 ʹ͍ͭͯͷৄࡉઆ໌ 2
  3. ஫ҙࣄ߲ ͜ͷൃද͸ݸਓͷҙݟͰ͋Γɺ ॴଐ͢ΔձࣾٴͼஂମΛ ୅ද͢ΔൃݴͰ͸͍͟͝·ͤΜ 3

  4. 4FMGJOUSPEVDUJPO )FMMP

  5. ࣗݾ঺հ QFSTPO OBNF5PSV*HBSBTIJ UXJUUFS!JHBOBSJ@ HJUIVC!JHBOBSJ QPTJUJPO DPNQBOZ$MPVE"DF*OD SPMF43& TLJMMT<5FSSBGPSN "OTJCMF

    ,VCFSOFUFT> CMPPEEPOBUJPO DPVOU EFTDSJQUJPO*DBOEPOBUFCMPPEBMJUUMF 5
  6. 4FDVSJUZJO:PVS",4 ͋ͳͨͷ ",4ͷηΩϡϦςΟ͸ ຊ౰ʹେৎ෉Ͱ͔͢

  7. ",4Λӡ༻͍ͯͯ͜͠Μͳ͜ͱݴΘΕ·ͤΜ͔ Ϋϥελ΁઀ଓग़དྷΔڌ఺Λ੍ݶ͠ͳ͍͞ Ø FY <৘γε>ࣄ຿ॴ͔Βͷ઀ଓͷΈʹ͍ͯͩ͘͠͞ ?? 1PEͱ֎෦Πϯλʔωοτͱͷ௨৴Λ؂ࢹɾ੍ޚ͠ͳ͍͞ Ø FY <ઃܭऀ>ಛఆͷ֎෦

    "1*͚ͩΞΫηεՄೳʹ͍ͯͩ͘͠͞ ?? 7
  8. ",4Λӡ༻͍ͯͯ͜͠Μͳ͜ͱݴΘΕ·ͤΜ͔ Ϋϥελ΁઀ଓग़དྷΔڌ఺Λ੍ݶ͠ͳ͍͞ Ø FY <৘γε>ࣄ຿ॴ͔Βͷ઀ଓͷΈʹ͍ͯͩ͘͠͞ ?? 1PEͱ֎෦Πϯλʔωοτͱͷ௨৴Λ؂ࢹɾ੍ޚ͠ͳ͍͞ Ø FY <ઃܭऀ>ಛఆͷ֎෦

    "1*͚ͩΞΫηεՄೳʹ͍ͯͩ͘͠͞ ?? 8 ຊ౰ʹղܾ͢΂͖໰୊͔൱͔͸͓͖ͯ͞ ηΩϡϦςΟͷ໰୊͸ ະͩʹࢁੵ͍ͯ͠Δ
  9. ϕεϓϥ͔ΒֶͿ ",4 ެࣜυΩϡϝϯτ Ø IUUQTEPDTNJDSPTPGUDPNFOVTB[VSFBLTCFTUQSBDUJDFT Ø ",4੡඼άϧʔϓɺΤϯδχΞϦϯάνʔϜɺ͓ΑͼάϩʔόϧϒϥοΫϕϧτ (## ΛؚΉϑΟʔϧυνʔϜͱ࿈ܞͯ͠࡞੒͞ΕͨϕετϓϥΫςΟε Ø

    .VMUJUFOBODZ 4FDVSJUZ /FUXPSLBOETUPSBHF 3VOOJOHFOUFSQSJTF SFBEZXPSLMPBETͱ෼໺ʹ෼͔Εͯవ·͍ͬͯ·͢ Ø ",4ʹܞΘΔΤϯδχΞ͸ඞಡͰ͢ 9
  10. 8IBUJT 1SJWBUF",4DMVTUFS 1SJWBUF ",4DMVTUFSͱ͸

  11. 1SJWBUF",4DMVTUFSͱ͸ આ໌ Ø ",4ͷ $POUSPM1MBOFٴͼɺ/PEFQPPMT͕ 3'$Ͱఆٛ͞Ε͍ͯΔ ಺෦ *1ΞυϨεͷΈׂ͕Γ౰ͯΒΕ͍ͯΔ DMVTUFSΛ࡞Δ͜ͱ͕ग़དྷ·͢ Ø

    $POUSPM1MBOFʹ಺แ͞Ε͍ͯΔ "1*αʔόʔͱ/PEFQPPM ಺ͷ /PEF  ؒͷωοτϫʔΫτϥϑΟοΫ͕ϓϥΠϕʔτωοτϫʔΫͷΈʹཹ·ΔΑ ͏ʹ͢Δ͜ͱ͕ग़དྷ·͢ 11 SFGIUUQTEPDTNJDSPTPGUDPNFOVTB[VSFBLTQSJWBUFDMVTUFST
  12. 1SJWBUF",4DMVTUFSͱ͸ આ໌ Ø ",4ͷ $POUSPM1MBOFٴͼɺ/PEFQPPMT͕ 3'$Ͱఆٛ͞Ε͍ͯΔ ಺෦ *1ΞυϨεͷΈׂ͕Γ౰ͯΒΕ͍ͯΔ DMVTUFSΛ࡞Δ͜ͱ͕ग़དྷ·͢ Ø

    $POUSPM1MBOFʹ಺แ͞Ε͍ͯΔ "1*αʔόʔͱ/PEFQPPM ಺ͷ /PEF  ؒͷωοτϫʔΫτϥϑΟοΫ͕ϓϥΠϕʔτωοτϫʔΫͷΈʹཹ·ΔΑ ͏ʹ͢Δ͜ͱ͕ग़དྷ·͢ ͳɺͳΔ΄Ͳ෼͔ΒΜ ɾXɾ 12 SFGIUUQTEPDTNJDSPTPGUDPNFOVTB[VSFBLTQSJWBUFDMVTUFST
  13. 1SJWBUF",4DMVTUFSͱ͸ "[VSF1PXFS-VODI1SJWBUF"[VSF,VCFSOFUFT4FSWJDFDMVTUFS 13

  14. $SFBUF 1SJWBUF",4DMVTUFS 1SJWBUF",4DMV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஫ҙ఺  DMVTUFS΁ͷ઀ଓͷ໰୊ "[VSFNBOBHFEDPOUSPMQMBOFʹ 1VCMJD*1"EESFTT͕ແ͍ͷͰ 1SJWBUF",4DMVTUFS΁ͷωοτϫʔΫ઀ଓΛཱ֬͠ͳ͚Ε͹͍͚ͳ͍ Ø bB[ MPHJO`bB[ BLT

    HFUDSFEFOUJBMT`͚ͩͰ͸઀ଓग़དྷͳ͍ 1SJWBUF",4DMVTUFSʹ઀ଓ͢Δํ๏ Ø ",4 DMVTUFSͱಉ͡"[VSF7JSUVBM/FUXPSL 7/FU ಺ʹ 7.Λ࡞੒͢Δ Ø ผͷ /FUXPSL಺ Ͱ 7.Λ࡞੒͠ɺ 7JSUVBMOFUXPSLQFFSJOH Λઃఆ͢Δ Ø &YQSFTT3PVUFPS71/ Λ઀ଓΛ࢖͏ 23 3FGIUUQTEPDTNJDSPTPGUDPNFOVTB[VSFBLTQSJWBUFDMVTUFST
  24. 1SJWBUF",4DMVTUFSͷ஫ҙ఺  ߏஙग़དྷΔϦʔδϣϯʹ੍ݶ͕͋Δ ࠓճͷ ("ʹΑͬͯɺϦʔδϣϯͷ੍ݶ͕ແ͘ͳΓ·ͨ͠ Ø ೔ຊޠ EPDͷमਖ਼͕௥͍͍͍ͭͯͳ͍ͷͰɺࠓͳΒ 1SFWJFX࣌ͷυΩϡϝϯτ͕ݟΕ·͢ Ø

    IUUQTEPDTNJDSPTPGUDPNKBKQB[VSFBLTQSJWBUFDMVTUFST 24 3FGIUUQTEPDTNJDSPTPGUDPNFOVTB[VSFBLTQSJWBUFDMVTUFST
  25. 1SJWBUF",4DMVTUFSͷ஫ҙ఺  ґଘؔ܎΍੍ݶࣄ߲ͳͲ͕͋Γ·͢ ৄ͘͠͸ެࣜυΩϡϝϯτΛ֬ೝ͠·͠ΐ͏ ґଘؔ܎ %FQFOEFODJFT Ø IUUQTEPDTNJDSPTPGUDPNFOVTB[VSFBLTQSJWBUFDMVTUFSTEFQFOEFODJFT ੍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़དྷ·͢ Ø 4QPU7.T౳ʹ͍ͭͯ͸࣍ϖʔδࢀর 29
  30. ݸਓతʹ஫໨͍ͯ͠Δ৽ػೳ ͷ࣌఺ Ͱ 1SFWJFX 4QPU7.Tʹ͍ͭͯ Ø 6TF4QPU7.TJO"[VSF Ø IUUQTEPDTNJDSPTPGUDPNFOVTB[VSFWJSUVBMNBDIJOFTXJOEPXTTQPUWNT 7JSUVBM.BDIJOF4DBMF4FUT

    Ͱ 4QPU7.TΛ ࢖͏ػೳ Ø "[VSF4QPU7.TGPSWJSUVBMNBDIJOFTDBMFTFUT Ø IUUQTEPDTNJDSPTPGUDPNFOVTB[VSFWJSUVBMNBDIJOFTDBMFTFUTVTFTQPU 30
  31. ·ͱΊ 1SJWBUF",4DMVTUFS ͕ ("ʹͳΓ·ͨ͠ Ø ओʹηΩϡϦςΟཁ݅ʹ͓͍ͯɺޮՌΛൃش͢Δ ͸ͣ Ͱ͠ΐ͏ Ø ґଘؔ܎΍੍ݶࣄ߲͕͋ΔͷͰɺ͏·͘࢖͍͜ͳ͠·͠ΐ͏

    Ø Ծʹόά͕͋ͬͯ΋ɺίϛϡχςΟͷྗͰղܾ͢ΔՄೳੑ͕͋Γ·͢ ৽ػೳ΋ͲΜͲΜग़͍ͯΔͷͰੵۃతʹࢼ͠·͠ΐ͏ Ø "[VSF4QPU7.TGPSWJSUVBMNBDIJOFTDBMFTFUT౳ 31
  32. &OKPZ",4 ⽄ ⽄ ̇ ̇ ̇ ⽄

  33. 33

  34. ࢿྉը૾ܥ (JU)VCKB[VHKQ Ø IUUQTHJUIVCDPNKB[VHKB[VHKQ "[VSF*DPOT Ø IUUQTB[VSFNJDSPTPGUDPNFOVTQBUUFSOTTUZMFTHMZQITJDPOT นࢴ࡞੒ऀ༷ Ø ԣҪ

    Ӌҥࢠ ͞Μ Ø IUUQTXXXGBDFCPPLDPNVJLPV 34
  35. ࢿྉެࣜυΩϡϝϯτ "[VSF,VCFSOFUFT4FSWJDF ",4 Ø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