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

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

sasaki
January 28, 2020

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

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

sasaki

January 28, 2020
Tweet

More Decks by sasaki

Other Decks in Technology

Transcript

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

    ࠤʑ໦ਅ໵

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  6. $POUSPM1MBOF
    w "84͕Ϛωʔδͯ͘͠ΕΔ
    w LVCFBQJ
    w ,VCFTDIFEVMMFS
    w FUDEʜ
    w අ༻
    w 64%I
    w ººº=

    View Slide

  7. https://aws.amazon.com/jp/about-aws/whats-new/2020/01/amazon-eks-announces-price-reduction/

    View Slide

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

    View Slide

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

    View Slide

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

    w 'BSHBUFϦϦʔε

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

    View Slide

  11. &,4ͷͭ͘Γ͔ͨ

    View Slide

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

    View Slide

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

    View Slide

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

    ϚωʔδυϫʔΧʔϊʔυ

    View Slide

  15. FLTDUM
    https://eksctl.io/

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  19. FLTDUM
    w ߏஙޙͷػೳ௥ՃɺίϯϙʔωϯτͷόʔδϣϯΞοϓ΋Ͱ͖Δ
    6TBHFFLTDUMVUJMT
    $PNNBOET
    FLTDUMVUJMTXBJUOPEFT8BJUGPSOPEFT
    FLTDUMVUJMTXSJUFLVCFDPOpH8SJUFLVCFDPOpHpMFGPSBHJWFODMVTUFS
    FLTDUMVUJMTEFTDSJCFTUBDLT%FTDSJCF$MPVE'PSNBUJPOTUBDLGPSBHJWFODMVTUFS
    FLTDUMVUJMTVQEBUFDMVTUFSTUBDL%&13&$"5&%6TFFLTDUMVQEBUFDMVTUFSJOTUFBE
    FLTDUMVUJMTVQEBUFLVCFQSPYZ6QEBUFLVCFQSPYZBEEPOUPFOTVSFJNBHFNBUDIFT
    ,VCFSOFUFTDPOUSPMQMBOFWFSTJPO
    FLTDUMVUJMTVQEBUFBXTOPEF6QEBUFBXTOPEFBEEPOUPMBUFTUSFMFBTFEWFSTJPO
    FLTDUMVUJMTVQEBUFDPSFEOT6QEBUFDPSFEOTBEEPOUPFOTVSFJNBHFNBUDIFTUIF
    TUBOEBSE"NB[PO&,4WFSTJPO
    FLTDUMVUJMTVQEBUFDMVTUFSMPHHJOH6QEBUFDMVTUFSMPHHJOHDPOpHVSBUJPO

    View Slide

  20. FLTDUM
    w ػೳ௥Ճ͸͔ͳΓ͸΍͍
    w 'BSHBUFϦϦʔε࣌ʹ͸3$൛͕ϦϦʔε͞Ε͍ͯͨ

    View Slide

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

    View Slide

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

    View Slide

  23. ͲΕΛ࢖͑͹͍͍͔ʁ

    View Slide

  24. ͓޷͖ͳ΍ͭͰ

    View Slide

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

    View Slide

  26. Ϛωʔδϝϯτίϯιʔϧ͸࢖Θͳ͍ཧ༝
    w ຊ൪؀ڥͳΒίʔυԽ͸ඞਢͰ͢ΑͶɾɾɾ
    w &,4͸࠷௿೥ҰճͷόʔδϣϯΞοϓ͕ඞཁ
    w όʔδϣϯΞοϓͷ໭͕͠Ͱ͖ͳ͍ͷͰɺߴ͍࠶ݱੑ͕ඞཁ
    w ࣄલݕূ
    w ΫϥελΛ#MVF(SFFOԽ
    w ໰୊ൃੜ࣌ͷ࠶ߏங

    View Slide

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

    View Slide

  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ͷ$%ϓϩηεʹ৐ͤΕͳ͔ͬͨͷͰɺஅ೦ɾɾɾ

    View Slide

  29. ·ͱΊ
    w &,4Λ࢖͏ͳΒίʔυԽ͸͓͍ͯͨ͠΄͏͕͍͍
    w ݸਓత͓͢͢Ί͸5FSSBGPSNFLTDUM
    w FLTDUMͰ(JU0QTతͳ͜ͱ͕Ͱ͖ΔΑ͏ʹͳΔ͜ͱΛظ଴ʂ

    View Slide