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

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

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

Ryo Takaishi

July 23, 2019
Tweet

More Decks by Ryo Takaishi

Other Decks in Technology

Transcript

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

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

    ϋϯζΦϯͷ࣮ࢪ 0QFO4UBDLͱͷ࿈ܞʹ͍ͭͯϦαʔν Ϋϥελʔߏஙπʔϧ OLF Λ ࣮૷ NJOOFʹTUBHJOHΫϥελʔΛߏங ಋೖϓϩδΣΫτ։࢝ NJOOFʹQSPEVDUJPOΫϥελʔΛ ߏஙɺಋೖ։࢝ $MPVE/BUJWF&SB 
  3. ˙ ()&ೝূͰ͙͢ʹ࢖͑ͯศར w UBLBJTIJLTHJUIVCBVUI ˙ PXBEB w ڞ༻%#΍LBGLBɺHSBZMPHͱ͍ͬͨج൫γεςϜ܈ !QZBNB 

    ˙ QFQBMBCDPNͰࣾ಺޲͚αʔϏεΛ͙͢ʹ༻ҙͰ͖Δ w &YUFSOBM%/4 !31 ৮Γ͍ͨͱ͖ʹ͙͢৮ΕΔ޻෉
  4.      0QFO4UBDL্΁ͷߏஙख๏ʹ ͍ͭͯϦαʔν ࣾ಺޲͚ڞ༻Ϋϥελʔ /,4 Λߏங

    ϋϯζΦϯͷ࣮ࢪ 0QFO4UBDLͱͷ࿈ܞʹ͍ͭͯϦαʔν Ϋϥελʔߏஙπʔϧ OLF Λ ࣮૷ NJOOFʹTUBHJOHΫϥελʔΛߏங ಋೖϓϩδΣΫτ։࢝ NJOOFʹQSPEVDUJPOΫϥελʔΛ ߏஙɺಋೖ։࢝ $MPVE/BUJWF&SB 
  5. !36 7.ͱ,VCFSOFUFTΛฒߦՔಇ͢Δ LTMC MC MC BQJ NJOOFDPN BQJTFSWJDF BQJ BQJ

    BQJ BQJ ,VCFSOFUFT BQJTFSWJDF consul-templateͰnginxͷupstreamʹ apiͷΞυϨεΛઃఆ
  6. !40 4ZOD,VCFSOFUFT`TTFSWJDFUP$POTVM BQJ ,VCFSOFUFTDMVTUFS OPEF OPEF OPEF MC DPOTVMUFNQMBUF VQTUSFBNCBDLFOET\

    \\SBOHFTFSWJDFlLTBQJl^^ TFSWFS\\"EESFTT^^\\1PSU^^ \\FOE^^ ^ LTBQJTFSWJDFDPOTVM    BQJ BQJ VQTUSFBNCBDLFOET\ TFSWFS TFSWFS ^   /*$ /*$ /*$ 
  7. !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
  8. !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ͷΞυ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