実録!CloudNativeを 目指した230日 / cloud-native-days-tokyo-2019

実録!CloudNativeを 目指した230日 / cloud-native-days-tokyo-2019

C84357a21083c81c5ccd5550422abc8d?s=128

Ryo Takaishi

July 23, 2019
Tweet

Transcript

  1. 3.
  2. 13.
  3. 25.

         0QFO4UBDL্΁ͷߏஙख๏ʹ ͍ͭͯϦαʔν ࣾ಺޲͚ڞ༻Ϋϥελʔ /,4 Λߏங

    ϋϯζΦϯͷ࣮ࢪ 0QFO4UBDLͱͷ࿈ܞʹ͍ͭͯϦαʔν Ϋϥελʔߏஙπʔϧ OLF Λ ࣮૷ NJOOFʹTUBHJOHΫϥελʔΛߏங ಋೖϓϩδΣΫτ։࢝ NJOOFʹQSPEVDUJPOΫϥελʔΛ ߏஙɺಋೖ։࢝ $MPVE/BUJWF&SB 
  4. 26.

         0QFO4UBDL্΁ͷߏஙख๏ʹ ͍ͭͯϦαʔν ࣾ಺޲͚ڞ༻Ϋϥελʔ /,4 Λߏங

    ϋϯζΦϯͷ࣮ࢪ 0QFO4UBDLͱͷ࿈ܞʹ͍ͭͯϦαʔν Ϋϥελʔߏஙπʔϧ OLF Λ ࣮૷ NJOOFʹTUBHJOHΫϥελʔΛߏங ಋೖϓϩδΣΫτ։࢝ NJOOFʹQSPEVDUJPOΫϥελʔΛ ߏஙɺಋೖ։࢝ $MPVE/BUJWF&SB 
  5. 31.

    ˙ ()&ೝূͰ͙͢ʹ࢖͑ͯศར w UBLBJTIJLTHJUIVCBVUI ˙ PXBEB w ڞ༻%#΍LBGLBɺHSBZMPHͱ͍ͬͨج൫γεςϜ܈ !QZBNB 

    ˙ QFQBMBCDPNͰࣾ಺޲͚αʔϏεΛ͙͢ʹ༻ҙͰ͖Δ w &YUFSOBM%/4 !31 ৮Γ͍ͨͱ͖ʹ͙͢৮ΕΔ޻෉
  6. 32.

         0QFO4UBDL্΁ͷߏஙख๏ʹ ͍ͭͯϦαʔν ࣾ಺޲͚ڞ༻Ϋϥελʔ /,4 Λߏங

    ϋϯζΦϯͷ࣮ࢪ 0QFO4UBDLͱͷ࿈ܞʹ͍ͭͯϦαʔν Ϋϥελʔߏஙπʔϧ OLF Λ ࣮૷ NJOOFʹTUBHJOHΫϥελʔΛߏங ಋೖϓϩδΣΫτ։࢝ NJOOFʹQSPEVDUJPOΫϥελʔΛ ߏஙɺಋೖ։࢝ $MPVE/BUJWF&SB 
  7. 36.

    !36 7.ͱ,VCFSOFUFTΛฒߦՔಇ͢Δ LTMC MC MC BQJ NJOOFDPN BQJTFSWJDF BQJ BQJ

    BQJ BQJ ,VCFSOFUFT BQJTFSWJDF consul-templateͰnginxͷupstreamʹ apiͷΞυϨεΛઃఆ
  8. 40.

    !40 4ZOD,VCFSOFUFT`TTFSWJDFUP$POTVM BQJ ,VCFSOFUFTDMVTUFS OPEF OPEF OPEF MC DPOTVMUFNQMBUF VQTUSFBNCBDLFOET\

    \\SBOHFTFSWJDFlLTBQJl^^ TFSWFS\\"EESFTT^^\\1PSU^^ \\FOE^^ ^ LTBQJTFSWJDFDPOTVM    BQJ BQJ VQTUSFBNCBDLFOET\ TFSWFS TFSWFS ^   /*$ /*$ /*$ 
  9. 41.

    !41 4ZOD,VCFSOFUFT`TTFSWJDFUP$POTVM BQJ OPEF OPEF OPEF MC DPOTVMUFNQMBUF VQTUSFBNCBDLFOET\ \\SBOHFTFSWJDFlLTBQJl^^

    TFSWFS\\"EESFTT^^\\1PSU^^ \\FOE^^ ^ LTBQJTFSWJDFDPOTVM    BQJ BQJ VQTUSFBNCBDLFOET\ TFSWFS TFSWFS ^   /*$ /*$ /*$  BQJ /PU3FBEZ ,VCFSOFUFTDMVTUFS
  10. 42.

    !42 7.ͱ,VCFSOFUFTΛฒߦՔಇ͢Δ LTMC MC MC BQJ DPOTVMUFNQMBUFͰOHJOYͷVQTUSFBNʹ LTOPEFͷΞυϨεΛઃఆ /PEF1PSU4FSWJDF NJOOFDPN

    BQJTFSWJDF BQJ BQJ BQJ BQJ ,VCFSOFUFT BQJTFSWJDF consul-templateͰnginxͷupstreamʹ apiͷΞυϨεΛઃఆ
  11. 56.

    !56 ,VCFSOFUFT಺෦ͷߏ੒Λ֬ೝ /*$ /*$ OHJOYJOHSFTTDPOUSPMMFS BQJ BQJ$MVTUFS*14FSWJDF JOHSFTTOHJOY/PEF1PSU4FSWJDF BQJ BQJ

    BQJ FYUFSOBM5SBGpD1PMJDZ$MVTUFS  BQJ7FSTJPOFYUFOTJPOTWCFUB LJOE*OHSFTT NFUBEBUB OBNFBQJJOHSFTT TQFD SVMFT IPTUBQJFYBNQMFDPN IUUQ QBUIT QBUI CBDLFOE TFSWJDF/BNFBQJ TFSWJDF1PSU
  12. 60.

    !60 OHJOYJOHSFTTͷϩʔυόϥϯε OHJOYJOHSFTTDPOUSPMMFS LTBQJTFSWFS TUBSU 1045TFSWJDF`TFOEQPJOU DPOpHVSBUJPOCBDLFOET (FUTFSWJDF`TFOEQPJOU OHJOY DPOpHVSBUJPOCBDLFOETIBOEMFEDPOpHVSBUJPOMVB

    1PEOHJOYJOHSFTTDPOUSPMMFS OHYTIBSFEDPOpHVSBUJPO@EBUB CBMBODFSMVB TFU HFU VQTUSFBNVQTUSFBN@CBMBODFS \ TFSWFS QMBDFIPMEFS CBMBODFS@CZ@MVB@CMPDL\ CBMBODFSCBMBODF  ^ ^ OHJOYDPOG
  13. 61.

    !61 OHJOYJOHSFTTͷϩʔυόϥϯε OHJOYJOHSFTTDPOUSPMMFS LTBQJTFSWFS TUBSU 1045TFSWJDF`TFOEQPJOU DPOpHVSBUJPOCBDLFOET (FUTFSWJDF`TFOEQPJOU OHJOY DPOpHVSBUJPOCBDLFOETIBOEMFEDPOpHVSBUJPOMVB

    1PEOHJOYJOHSFTTDPOUSPMMFS OHYTIBSFEDPOpHVSBUJPO@EBUB CBMBODFSMVB TFU HFU VQTUSFBNVQTUSFBN@CBMBODFS \ TFSWFS QMBDFIPMEFS CBMBODFS@CZ@MVB@CMPDL\ CBMBODFSCBMBODF  ^ ^ OHJOYDPOG ServiceͷEndpointΛ؂ࢹ
  14. 62.

    OHJOYJOHSFTTDPOUSPMMFS LTBQJTFSWFS TUBSU 1045TFSWJDF`TFOEQPJOU DPOpHVSBUJPOCBDLFOET (FUTFSWJDF`TFOEQPJOU OHJOY DPOpHVSBUJPOCBDLFOETIBOEMFEDPOpHVSBUJPOMVB 1PEOHJOYJOHSFTTDPOUSPMMFS OHYTIBSFEDPOpHVSBUJPO@EBUB

    CBMBODFSMVB TFU HFU VQTUSFBNVQTUSFBN@CBMBODFS \ TFSWFS QMBDFIPMEFS CBMBODFS@CZ@MVB@CMPDL\ CBMBODFSCBMBODF  ^ ^ OHJOYDPOG !62 OHJOYJOHSFTTͷϩʔυόϥϯε DPOUSPMMFS͸OHJOYʹ&OEQPJOUTΛ1045͢Δ
  15. 63.

    OHJOYJOHSFTTDPOUSPMMFS LTBQJTFSWFS TUBSU 1045TFSWJDF`TFOEQPJOU DPOpHVSBUJPOCBDLFOET (FUTFSWJDF`TFOEQPJOU OHJOY DPOpHVSBUJPOCBDLFOETIBOEMFEDPOpHVSBUJPOMVB 1PEOHJOYJOHSFTTDPOUSPMMFS OHYTIBSFEDPOpHVSBUJPO@EBUB

    CBMBODFSMVB TFU HFU VQTUSFBNVQTUSFBN@CBMBODFS \ TFSWFS QMBDFIPMEFS CBMBODFS@CZ@MVB@CMPDL\ CBMBODFSCBMBODF  ^ ^ OHJOYDPOG !63 OHJOYJOHSFTTͷϩʔυόϥϯε 1045͞Εͨ&OEQPJOUT͸OHJOY಺෦ͷม਺ʹηοτ͞ΕΔ
  16. 64.

    OHJOYJOHSFTTDPOUSPMMFS LTBQJTFSWFS TUBSU 1045TFSWJDF`TFOEQPJOU DPOpHVSBUJPOCBDLFOET (FUTFSWJDF`TFOEQPJOU OHJOY DPOpHVSBUJPOCBDLFOETIBOEMFEDPOpHVSBUJPOMVB 1PEOHJOYJOHSFTTDPOUSPMMFS OHYTIBSFEDPOpHVSBUJPO@EBUB

    CBMBODFSMVB TFU HFU VQTUSFBNVQTUSFBN@CBMBODFS \ TFSWFS QMBDFIPMEFS CBMBODFS@CZ@MVB@CMPDL\ CBMBODFSCBMBODF  ^ ^ OHJOYDPOG !64 OHJOYJOHSFTTͷϩʔυόϥϯε CBMBODFSMVB͕ม਺Λࢀরɺϩʔυόϥϯε͢Δ
  17. 65.

    ˙ MVBΛ࢖͍ͬͯΔ ˙ 3PVOE3PCJO EFGBVMU ͱ&8." ࢦ਺ॏΈ෇͖Ҡಈฏۉ ͕࢖༻Մೳ w 3PVOE3PCJOͳΒภΔ͜ͱ΋ͳͦ͞͏ʹࢥ͑Δ͕ʜʁ

    ˙ ϩʔυόϥϯγϯάͷ஌ࣝ͸͋·Γͳ͍ͷͰɺϝτϦΫεΛ৴ͯ͡͞Βʹௐ΂Δ !65 CBMBODFSCBMBODF
  18. 66.
  19. 67.
  20. 68.
  21. 79.
  22. 81.