EKSクラスタのつくりかた / JAWS-UG-Nagoya EKS Cluster

5862ce660c5a25de9584b0c2e5497055?s=47 sasaki
January 28, 2020

EKSクラスタのつくりかた / JAWS-UG-Nagoya EKS Cluster

JAWS-UG名古屋 コンテナを学ぶ

5862ce660c5a25de9584b0c2e5497055?s=128

sasaki

January 28, 2020
Tweet

Transcript

  1. +"846(໊ݹ԰ίϯςφΛֶͿ &,4Ϋϥελͷͭ͘Γ͔ͨ  ࠤʑ໦ਅ໵

  2. &,4 ,VCFSOFUFT ͷجຊతͳߏ੒ͷ࿩

  3. ,VCFSOFUFT"SDIJUFDUVSF https://eksworkshop.com/010_introduction/architecture/architecture_control_and_data_overview/

  4. &,4"SDIJUFDUVSF https://eksworkshop.com/010_introduction/eks/eks_high_architecture/

  5. &,4 $POUSPM1MBOF ʴ 8PSLFS/PEFT

  6. $POUSPM1MBOF w "84͕Ϛωʔδͯ͘͠ΕΔ w LVCFBQJ w ,VCFTDIFEVMMFS w FUDEʜ w

    අ༻ w 64%I w ººº= 
  7. https://aws.amazon.com/jp/about-aws/whats-new/2020/01/amazon-eks-announces-price-reduction/

  8. $POUSPM1MBOF w 64%I w ººº = 

  9. $POUSPM1MBOF w 64%I w ººº = 

  10. 8PSLFS/PEFT w ϢʔβʔͷίϯςφΛಈ͔͢؀ڥ w ௨ৗͷϫʔΧʔϊʔυ w ϚωʔδυϫʔΧʔϊʔυϦϦʔε   w

    'BSHBUFϦϦʔε   w අ༻ w ϫʔΧʔϊʔυ w &$ͷྉۚ w 'BSHBUF w 1PE͕ऴྃ͢Δ·Ͱʹ࢖༻͞ΕͨW$16͓Α ͼϝϞϦϦιʔεʹج͍ͮͯܭࢉ
  11. &,4ͷͭ͘Γ͔ͨ

  12. Ϛωʔδυίϯιʔϧ

  13. Ϛωʔδυίϯιʔϧ w 71$Λͭ͘Δ w &,4ΫϥελΛͭ͘Δ w ϫʔΧʔϊʔυͷ&$Λىಈ͢Δ w BXTBVUI$POpH.BQΛฤूɺ&$ʹద༻͞Εͨ*".ϩʔϧΛ௥Ճͯ͠ɺϫʔΧʔϊʔυΛࢀ Ճͤ͞Δ

    ϚωʔδυϫʔΧʔϊʔυҎલ
  14. Ϛωʔδυίϯιʔϧ w 71$Λͭ͘Δ w &,4ΫϥελΛͭ͘Δ w "EE/PEF(SPVQͰϊʔυάϧʔϓΛ࡞੒ˠ&$͕ىಈ͢Δ w ͨͩ͠ɺݱঢ়4QPU*OTUBODF͸࢖͑ͳ͍ ͨͿΜ

    ϚωʔδυϫʔΧʔϊʔυ
  15. FLTDUM https://eksctl.io/

  16. FLTDUM w FLTϦϦʔε౰ॳ͔Β͋Δ8FBWF8PSLTࣾ੡ͷίϚϯυϥΠϯπʔϧ w ͍͔ͭΒ͔"840⒏DJBMʹͳͬͨ

  17. FLTDUM w ίϚϯυ࣮ߦͰ$'O͕ಈ͘

  18. FLTDUM w ઃఆΛ:".-Ͱ؅ཧͰ͖Δ w 71$΋ؚΊΔ͜ͱ͕Ͱ͖Δ

  19. FLTDUM w ߏஙޙͷػೳ௥ՃɺίϯϙʔωϯτͷόʔδϣϯΞοϓ΋Ͱ͖Δ 6TBHFFLTDUMVUJMT<qBHT> $PNNBOET FLTDUMVUJMTXBJUOPEFT8BJUGPSOPEFT FLTDUMVUJMTXSJUFLVCFDPOpH8SJUFLVCFDPOpHpMFGPSBHJWFODMVTUFS FLTDUMVUJMTEFTDSJCFTUBDLT%FTDSJCF$MPVE'PSNBUJPOTUBDLGPSBHJWFODMVTUFS FLTDUMVUJMTVQEBUFDMVTUFSTUBDL%&13&$"5&%6TFFLTDUMVQEBUFDMVTUFSJOTUFBE FLTDUMVUJMTVQEBUFLVCFQSPYZ6QEBUFLVCFQSPYZBEEPOUPFOTVSFJNBHFNBUDIFT

    ,VCFSOFUFTDPOUSPMQMBOFWFSTJPO FLTDUMVUJMTVQEBUFBXTOPEF6QEBUFBXTOPEFBEEPOUPMBUFTUSFMFBTFEWFSTJPO FLTDUMVUJMTVQEBUFDPSFEOT6QEBUFDPSFEOTBEEPOUPFOTVSFJNBHFNBUDIFTUIF TUBOEBSE"NB[PO&,4WFSTJPO FLTDUMVUJMTVQEBUFDMVTUFSMPHHJOH6QEBUFDMVTUFSMPHHJOHDPOpHVSBUJPO
  20. FLTDUM w ػೳ௥Ճ͸͔ͳΓ͸΍͍ w 'BSHBUFϦϦʔε࣌ʹ͸3$൛͕ϦϦʔε͞Ε͍ͯͨ

  21. 5FSSBGPSN&,4.PEVMF https://registry.terraform.io/modules/terraform-aws-modules/eks/

  22. 5FSSBGPSN&,4.PEVMF w "847FSJpFEͰ͸ͳ͍ w UFSSBGPSNBQQMZͰ͢΂ͯ࠶ݱͰ͖Δ w ଞͷϦιʔεͱಉ͡࢓૊ΈͰ؅ཧͰ͖Δ w ػೳ௥Ճ΋·͋·͋ૣ͍ w

    'BSHBUFରԠͰ೔ޙ͘Β͍
  23. ͲΕΛ࢖͑͹͍͍͔ʁ

  24. ͓޷͖ͳ΍ͭͰ

  25. ৭ʑ΍ͬͯΈͨ݁Ռ w "84Ϧιʔε w 5FSSBGSPN w &,4Ϋϥελ w FLTDUM

  26. Ϛωʔδϝϯτίϯιʔϧ͸࢖Θͳ͍ཧ༝ w ຊ൪؀ڥͳΒίʔυԽ͸ඞਢͰ͢ΑͶɾɾɾ w &,4͸࠷௿೥ҰճͷόʔδϣϯΞοϓ͕ඞཁ w όʔδϣϯΞοϓͷ໭͕͠Ͱ͖ͳ͍ͷͰɺߴ͍࠶ݱੑ͕ඞཁ w ࣄલݕূ w

    ΫϥελΛ#MVF(SFFOԽ w ໰୊ൃੜ࣌ͷ࠶ߏங
  27. શ෦5FSSBGPSNͰ΍Βͳ͍ཧ༝ w ৽ػೳ͕௥Ճ΍Ξοϓσʔτ౳ɺ5FSSBGPSNͰͷߋ৽ͷ࢓ ํʹࣗ਎͕΋ͯͳ͍ w FLTDUMͰͷมߋ͸"84ͷϚχϡΞϧʹ΋هࡌ͞Ε͍ͯΔ ͷͰ҆৺ w FLTDUMͰมߋͰ͖Δͷ͸ɺFLTDUMͰͭͬͨ͘ΫϥελͷΈ

  28. جຊతͳखॱ w 5FSSBGPSNͰ&,4Ҏ֎ͷ"84ϦιʔεͷఆٛΛॻ͘ w 71$ɺ3PVUFɺ"$.ɺ-#ɺ4(ɺ1BSBNFUFS4UPSFʜ w UFSSBGPSNBQQMZ w (JUIVCʴ5FSSBGPSN$MPVEͰ$*$% w

    FLTDUM༻ͷDMVTUFSZNMΛ࡞੒ w 71$ɺ4VCOFUɺ*".ɺ4(ɺ5BSHFU(SPVQ౳Λखಈίϐʔ w FLTDUMDSFBUFDMVTUFSGDMVTUFSZNM w -PDBM͔Β࣮ߦ w MPDBMFYFD1SPWJTJPOFSͰͷࣗಈੜ੒ɺࣗಈ࣮ߦ΋ࢼ͕ͨ͠ɺطଘ5FSSBGPSNͷ$%ϓϩηεʹ৐ͤΕͳ͔ͬͨͷͰɺஅ೦ɾɾɾ
  29. ·ͱΊ w &,4Λ࢖͏ͳΒίʔυԽ͸͓͍ͯͨ͠΄͏͕͍͍ w ݸਓత͓͢͢Ί͸5FSSBGPSN FLTDUM w FLTDUMͰ(JU0QTతͳ͜ͱ͕Ͱ͖ΔΑ͏ʹͳΔ͜ͱΛظ଴ʂ