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

希望のRancher〜コンテナをアウフヘーベン〜/ranchermeetup-20171006

 希望のRancher〜コンテナをアウフヘーベン〜/ranchermeetup-20171006

Rancher Meetup #02 in Fukuoka の資料です。 #ranchermeetup

356dbe9f00ed6a1f5dafe126029497f1?s=128

Kunihiro Morita

October 06, 2017
Tweet

Transcript

  1. ر๬ͷRancher ʙίϯςφΛΞ΢ϑϔʔϕϯʙ #ranchermeetup 201710/6 Rancher Meetup #02 in Fukuoka 1

  2. Ξ΢ϑϔʔϕϯ খ஑౎஌ࣄͷ๛ऱҠస໰୊ΛΊ͙ΔൃݴͰ࿩୊ͱͳͬͨʮΞ΢ϑϔʔϕ ϯʯɻ౎஌ࣄ͸ϔʔήϧ͕ఏএͨ͠ʮࢭ༲ʯΛݴ͍ͬͯͨͱࢥ͍·͢ ͕ɺΞ΢ϑϔʔϕϯ͸େ࢖ؗһ΋ؚΊେ൒ͷυΠπਓʹͱͬͯ͸ࢸͬͯ ී௨ͷಈࢺͰ͢ɻҙຯ͸ʮ্࣋ͪ͛Δɾर্͍͛Δʯɻ೔ࠒ৭ʑͳ΋ͷ ΛΞ΢ϑϔʔϕϯͯ͠·͢ɻ — υΠπେ࢖ؗ https://twitter.com/GermanyinJapan/status/ 879186586033725440

    201710/6 Rancher Meetup #02 in Fukuoka 2
  3. ηογϣϯ֓ཁ Rancherॳ৺ऀͰ͢ɻRancherͰίϯ ςφΛΞ΢ϑϔʔϕϯʢσϓϩΠʣͨ͠ ͍ر๬Λ๊͍͍ͯ·͢ɻ৮Εͳ͕Β͜Ε ศརɺग़དྷͨΒྑ͍ͳ౳ͷؾ͖ͮ΍ٕ ज़తཪ෇͚͕ͳ͍΋ͷؚ͕·Ε·͢ɻ ಉձ৔಺ʹ͍ΔRancher࢖͍ࡾݡऀͷ ਅ৺ϑΟʔυόοΫͰ੒Γཱͪ·͢ɻ 201710/6 Rancher

    Meetup #02 in Fukuoka 3
  4. @yamamoto_febc Ͳ͏͍͏ͱ͜ΖͰ࢖͑ͦ͏ͱࢥ͔ͬͨͳΜ͍ͯ͏ɺͨ͠ͳΉաఔͦͷ΋ ͷ͕݁ߏؾʹͳͬͯ·͢wͦͷลͰൃදͲ͏Ͱ͢ʁ 201710/6 Rancher Meetup #02 in Fukuoka 4

  5. @FoxBoxsnet ͦͷล͸ɺ͏͠੎ʹ͸΋͏ؾ͚ͮͳ͍ͷͰɺཉ͍͠Ͱ͢Ͷ!! Rancherྺ͸ଟ෼ 1,000͙࣌ؒΒ͍Ͱ͕͢ɺؾ͚ͮͯͳ͍෦෼΋ଟʑ͋ ΔͷͰ͓ؾʹͳ͞Βͣɻ 201710/6 Rancher Meetup #02 in

    Fukuoka 5
  6. kill -9 me 201710/6 Rancher Meetup #02 in Fukuoka 6

  7. ৿ా๜༟ גࣜձࣾΦϧλʔϒʔε ιϦϡʔγϣϯΞʔΩςΫτ @morita92hiro http://hawaku.hateblo.jp 201710/6 Rancher Meetup #02 in

    Fukuoka 7
  8. ͨ͠ͳΉաఔ » Rancher ϋϯζΦϯ #03 & ϞΫϞΫษڧձ #071 <- ࢼͨ͠

    » Rancher JP - ࢿྉҰཡ - connpass2 <-શ෦ݟͨ » Rancher JP - YouTube3 <-΄΅ݟͨ » Rancher Documentation4 <- ੵΈຊ New 4 http://rancher.com/docs/rancher/latest/en/ 3 https://www.youtube.com/channel/UCkczjoJXD_jRffogLZ-ilLg/videos 2 https://rancherjp.connpass.com/presentation/ 1 https://www.slideshare.net/secret/VndQ9YHIjIA1a 201710/6 Rancher Meetup #02 in Fukuoka 8
  9. Ͳ͏͍͏ͱ͜ΖͰ࢖͑ͦ͏ʁ » ෳ਺ͷΦʔέετϨʔγϣϯπʔϧͷ؅ཧ » ෳ਺ͷύϒϦοΫΫϥ΢υར༻΍ΦϯϓϨͱͷϋΠϒϦου » ϚΠΫϩαʔϏε, APIج൫, OpenFaaSͳͲFaaSج൫ »

    Ծ૝Ϛγϯ͕ඵ՝ۚ࣌୅ɻϗετ؅ཧʹྑ͍࢓૊Έ͕͋Ε͹ 201710/6 Rancher Meetup #02 in Fukuoka 9
  10. ࢼͯ͠Έͨ » Azure্ʹ࡞ͬͯΈͨ » ߏஙࢿྉ͸ઌͷϋϯζΦϯࢿྉ΍QiitaͳͲ๛෋ʹ͋Δ » Rancher Server / Agentͷߏங͸؆୯

    » ࠓճ͸1ܥΛ৮ͬͯΈͨ » ߏங͸Rancher JPࢿྉ΍QiitaΛړΕ͹ग़ͯ͘Δ » ߏங͸ͬ͘͟ΓΘ͔ͬͨ 201710/6 Rancher Meetup #02 in Fukuoka 10
  11. Α͋͘Δέʔε ίϯςφ de WordPress 201710/6 Rancher Meetup #02 in Fukuoka

    11
  12. Dockerͩͱ 1. docker-compose.yml࡞੒ » WordPressͷLAMPίϯςφ » σʔλӬଓ » ϙʔτϚοϐϯά 2.

    docker-compose up 3. ׬੒ 201710/6 Rancher Meetup #02 in Fukuoka 12
  13. Rancherͩͱ 1. Χλϩά͔ΒWordPressબ୒ 2. ׬੒ » ఆٛࡁΈ͸Χλϩά͔ΒબͿ͚ͩͰ؆୯ʢDC/OSͬΆ͍ʣ » Wordpressͷଞʹ΋ GitLab

    / PrometheusΛࢼͨ͠ » ؆୯ʹىಈͨ͠ » Χλϩά࡞੒΋Մೳ 201710/6 Rancher Meetup #02 in Fukuoka 13
  14. ؆୯ͩΑͶ γϯάϧϗετ 201710/6 Rancher Meetup #02 in Fukuoka 14

  15. ӡ༻໨ઢ Ϛϧνϗετ 201710/6 Rancher Meetup #02 in Fukuoka 15

  16. ѹ౗త৘ใগͳ͞ ӡ༻ɾ؂ࢹɾՄ༻ੑ 201710/6 Rancher Meetup #02 in Fukuoka 16

  17. WordPressՄ༻ੑઃܭ » LB + PHP̎୆ + MySQL(Active/Standby) » WordpressϑΝΠϧͷϗετؒσʔλಉظ »

    NFS΍Rsync౳ͰಉظɻࣗલNFS͸SPOFɻ » MySQLͷՄ༻ੑ ӡ༻ਏ͍ 201710/6 Rancher Meetup #02 in Fukuoka 17
  18. ϚωʔδυαʔϏε࢖͏ » AWS EFS, S3΍Azure File Storage, BloBͳͲϚωʔδυετϨʔδ » AWS

    RDS΍Azure Database MySQLͳͲϚωʔδυDB ӡ༻ָ 201710/6 Rancher Meetup #02 in Fukuoka 18
  19. ίϯςφՄ༻ੑ » ల։͢ΔίϯςφͷϗετͷภΓΛͳ͍ͨ͘͠ » ಉҰϗετͰಉҰϙʔτ͸࢖͑ͳ͍ » Proxyίϯςφɺ΋͘͠͸֎͔ΒίϯςφʹಈతϚοϐϯά 201710/6 Rancher Meetup

    #02 in Fukuoka 19
  20. RancherͰ͸ʁ ༻ҙ͞ΕͯͨWordPressΧλϩάͰࢼͨ͠ » ϗετؒσʔλಉظ » ίϯςφεέʔϧΞ΢τ͸ಉҰϗετ಺ » ղܾࡦ͸Rancher NFS, Longhoneʁ

    ϚωʔδυετϨʔδ΋૊Έ߹Θͤͯ࢖͍͍ͨ 201710/6 Rancher Meetup #02 in Fukuoka 20
  21. RancherͰ͸ʁʢଓ͖ʣ » MySQLίϯςφ » ʁ » LBίϯςφ » HAProxy͕ಈ࡞ͯ͠εέʔϧΞ΢τʹ௥ਵ »

    HAPorxy͸γϯάϧίϯςφɻίϯςφࢮΜͩΒʁ ϚωʔδυDB/LB΋૊Έ߹Θͤͯ࢖͍͍ͨ 201710/6 Rancher Meetup #02 in Fukuoka 21
  22. ଞʹ΋ͨ͘͞Μ 201710/6 Rancher Meetup #02 in Fukuoka 22

  23. » Server/AgentϗετࢮΜͩΒͲ͏ͳΔ໰୊ » ίϯςφࢮΜͩΒͲ͏ͳΔ໰୊ » ޙ͔ΒRancher؅ཧ΋Մೳʁ » ίϯςφ͸Rancher͕؅ཧʁk8sʹ४ͣʁ » ΞΫηε૿ݮͷίϯςφ૿ݮ͸Ͳ͏͢Δʁ

    » ϗετͷεέʔϧ΋͍ͨ͠ΑͶʁ 201710/6 Rancher Meetup #02 in Fukuoka 23
  24. » ͲͷϗετʹσϓϩΠ͞ΕΔʁDNSׂΓ౰ͯͲ͏͠Α͏ʁ » ϩάͲ͏͢Δʁ » Rancher NFSɻSPOFɺϗετεέʔϧͲ͏ͳΔ໰୊ » Rancher Longhorn

    ຊ໋ʁ » ϚωʔδυαʔϏεͱͷ૊Έ߹ΘͤͲ͏΍ͬͯ໰୊ » ؂ࢹͲ͏͢Δ໰୊ 201710/6 Rancher Meetup #02 in Fukuoka 24
  25. » GitLab౳ͷଞCI/CDπʔϧͱ૊Έ߹Θͤͯ࢖͏ඞཁ » Rancher API/CLIΛ࢖͑͹Ͱ͖ͦ͏ » σϓϩΠʢϩʔϦϯάɺϩʔϧόοΫͳͲʣ͸k8s४ͣʁ » 1ͭͷUIͰ͍ͨ͠ͳΒOpenShiftʁ ʢ<-

    Rancherؔ܎ͳ͍ʣ » Rancher΋EnterpriseͰk8sαϙʔτʁ 201710/6 Rancher Meetup #02 in Fukuoka 25
  26. » ͦ΋ͦ΋ίϯςφϗετ؅ཧͨ͘͠ͳ͍໰୊ » ୭͔ » Azure Container Instance » RancherͰ؅ཧͰ͖Δʁ

    » ͜Ε͔Β࢝ΊΔਓ͸1ܥΑΓ2ܥ͕Α͍ʁ 201710/6 Rancher Meetup #02 in Fukuoka 26
  27. ٻΉ৘ใ ӡ༻ɾ؂ࢹɾՄ༻ੑ 201710/6 Rancher Meetup #02 in Fukuoka 27

  28. _____ < END > ----- \ ^__^ \ (oo)\_______ (__)\

    )\/\ ||----w | || || 201710/6 Rancher Meetup #02 in Fukuoka 28