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

Istio Service Mesh easy experience using Rancher

Istio Service Mesh easy experience using Rancher

Rancher Meetup #6 in Osaka Jan 18, 2019

Bf5ee9059859ed5d855b5ff4680e63e2?s=128

track3jyo-hama

January 18, 2019
Tweet

Transcript

  1. Istio Service Mesh easy experience using Rancher Rancher Meetup #6

    in Osaka Jan 18, 2019 Hama Shinichi(@track3jyo)
  2. WHO?? • Hama Shinichi(@track3jyo) • Kobe Digital Labo Inc. -

    Cloud Native Team • Senior Cloud Architect • Rancher Meetup,͘͡Β΍,CNJP • Tech books,Rakugo!
  3. Agenda 1. Rancher Catalog 2. Why Istio?? 3. Istio Using

    Rancher 4. Conclusion & Notification
  4. Rancher Catalog • RancherΧλϩάͷ๛෋͞ • ཉ͍͠ػೳɺΞϓϦΛϘλϯ̍ͭͰίϯςφΫϥελͱͯ͠ deploy

  5. What's Rancher catalog?? • ໨తʹ߹Θͤͯෳ਺ͷίϯςφΛ·ͱΊͨͷ͕Stack • ͦͷstackΛ࡞੒͢ΔͨΊͷઃܭॻ͕Catalog • ࡞੒ͨ͠αʔϏεΛStackͱͯ͠·Δ͝ͱCatalogʹ͓͚ͯ͠ ͹ɺ؀ڥͷdeploy͕͍͢͝؆୯ʹͰ͖Δ

    Rancher ϓϥΠϕʔτΧλϩάͱCompose https://www.slideshare.net/m-daichang/rancher-compose
  6. What's ServiceMesh?? • RancherͰk8sʹΑΔMicroserviceͳੈքͰਓݖΛಘͨ ਓͨͪ • ͕ͩɺɺMicroserviceԽ͞Εͨίϯϙʔωϯτ͕ͲΜͲ Μ૿͑ΔͱͲ͏ͳΔ͔ʁ

  7. What's ServiceMesh?? • MicroserviceԽ͞Εͨίϯϙʔωϯτ͕ͲΜͲΜ૿͑Δ ͱͲ͏ͳΔ͔ʁ

  8. ServiceMeshͱ͍͏ݴ༿͸͜ͷMicroserviceಉ͕࢜ ௨৴͢ΔωοτϫʔΫͷ͜ͱ ࠷ۙ͸͜ͷ൥ࡶԽͨ͠Meshߏ଄Λ Ϛωʔδϝϯτ͢Διϑτ΢ΣΞͷҙຯͰ࢖ΘΕΔ

  9. What's Istio?? ͜ͷෳࡶԽͨ͠ϚΠΫϩαʔϏεΛηΩϡΞʹɺ ɹ͍͍ͦͯ͠ײ͡ʹϚωʔδϝϯτ͢ΔͨΊͷOSS k8s pod಺ʹϓϩΩγ(envoy)Λsidecarͱͯ͠σϓϩΠ͢ΔͨΊ ΞϓϦέʔγϣϯίʔυΛมߋ͢Δ͜ͱͳ͘αʔϏεϝογϡͷػೳΛ௥ ՃՄೳ

  10. What's Istio?? • ֤podʹαΠυΧʔͱͯ͠inject͞ΕΔDataPlane(Envoy) • pilot,Mixer,istioAuth͔ΒͳΔControl Plane • ݫີʹ͸Istio͸͜ͷControl Planeͷ͜ͱ

  11. Data Planeʢenvoyʣ • ֤ServiceͷSidecarͱͯ͠proxyΛཱͯͯMicroserviceʹศ རͳػೳΛఏڙ͢Δ • ૣ͍࿩͕ɺWEBΞϓϦͷ্ஈʹ഑ஔ͢Δnginx • ΞϓϦέʔγϣϯ͸͜ͷϓϩΩγΛશ͘ҙࣝ͠ͳͯ͘ྑ͍ Service

    mesh data plane vs. control plane https://blog.envoyproxy.io/service-mesh-data-plane-vs-control- plane-2774e720f7fc
  12. Control Plane(Istio) • data planeͷڍಈΛ੍ޚ͢ΔServiceMeshͷ಄೴ • ઌ΄ͲͷNginxͷྫͰݴ͏ͱɺNginxͷઃఆΛ࡞੒ɾߋ ৽͢Δਓؒ Service mesh

    data plane vs. control plane https://blog.envoyproxy.io/service-mesh-data-plane-vs-control- plane-2774e720f7fc
  13. Istio Using Rancher • IstioΛαΠυΧʔϓϩΩγͰk8sʹinject͠Α͏ͱ͢Δͱ ·ͨ͜͜ͰίϚϯυͰ͝ʹΐ͝ʹΐɾɾɾ • ɾɾɾͱ͸ͳΓ·ͤΜʂʂ DVSM-IUUQTHJUJPHFU-BUFTU*TUJPcTI DEJTUJP

    FYQPSU1"5)18%CJO1"5) LVCFDUMBQQMZGJOTUBMMLVCFSOFUFTJTUJPZBNM LVCFDUMHFUTWDOJTUJPTZTUFN LVCFDUMHFUQPETOJTUJPTZTUFN LVCFDUMBQQMZG JTUJPDUMLVCFJOKFDUEFCVHGTBNQMFTCPPLJOGPLVCF CPPLJOGPZBNM 
  14. Istio Using Rancher • Rancher catalogʹ͋Γ·͢

  15. Istio Using Rancher • ඞཁͳ߲໨͚ͩબ୒ͯ͠Launch

  16. Istio Using Rancher • ֤छαʔϏε͕ىಈ͍ͯ͠Δ • istio-sidecar-injector͕͜ΕҎ߱ىಈ͢Δpodʹsidecar ͱͯ͠envoyΛࣗಈͰ࡞ͬͯ͘ΕΔ

  17. sample Bookinfo Application deploy • https://istio.io/docs/examples/bookinfo/

  18. sample Bookinfo Application deploy • RancherͰߏஙͨ͠Ϋϥελͷdefault nameSpace্Ͱ bookinfo.yamlΛimport • bookinfo.yml:https://info.rancher.com/hubfs/bookinfo.yaml

  19. sample Bookinfo Application deploy • RancherͰߏஙͨ͠Ϋϥελͷdefault nameSpace্Ͱ bookinfo.yamlΛimport • FYQPSU("5&8":@63-

    LVCFDUMHFUQPOJTUJPTZTUFNMJTUJPJOHSFTT PKTPOQBUI\JUFNT<>TUBUVTIPTU*1^  LVCFDUMHFUTWDJTUJPJOHSFTTO JTUJPTZTUFNPKTPOQBUI\TQFDQPSUT<>OPEF1PSU^  IUUQ("5&8":@63-QSPEVDUQBHFʹΞΫηεʂʂ
  20. sample Bookinfo Application deploy • ϨϏϡʔػೳΛ࣋ͭίϯϙʔωϯτʹରͯ͠ϥ΢ϯυϩ ϏϯͰϧʔςΟϯά͞ΕΔ

  21. sample Bookinfo Application deploy • ϨϏϡʔػೳΛ࣋ͭίϯϙʔωϯτʹରͯ͠ϥ΢ϯυϩ ϏϯͰϧʔςΟϯά͞ΕΔ

  22. sample Bookinfo Application deploy • ϨϏϡʔػೳΛ࣋ͭίϯϙʔωϯτʹରͯ͠ϥ΢ϯυϩ ϏϯͰϧʔςΟϯά͞ΕΔ

  23. Blue/Green deployment & canary-release • IstioʹΑΔenvoyͷ׆༻ʹΑΓΑΓෳࡶͳdeploy͕Մೳ 1. ϦϦʔεόʔδϣϯͷHTTPϔομʹԠͨ͡ϧʔ ςΟϯάʹΑΔBlue/Green deployment

    BQJ7FSTJPODPOpHJTUJPJPWBMQIB LJOE3PVUF3VMF NFUBEBUB OBNFCMVFHSFFOUFTU TQFD EFTUJOBUJPO OBNFSFWJFXT QSFDFEFODF NBUDI SFRVFTU IFBEFST DPPLJF SFHFY?   SFMFBTFW   SPVUF MBCFMT WFSTJPOW
  24. Blue/Green deployment & canary-release • IstioʹΑΔenvoyͷ׆༻ʹΑΓΑΓෳࡶͳdeploy͕Մೳ 2. ॏΈ෇͚ʹΑΔΧφϦΞσϓϩΠ BQJ7FSTJPODPOpHJTUJPJPWBMQIB LJOE3PVUF3VMF

    NFUBEBUB OBNFDBOBSZSFMFBTFUFTU TQFD EFTUJOBUJPO OBNFSFWJFXT QSFDFEFODF SPVUF MBCFMT WFSTJPOW XFJHIU MBCFMT WFSTJPOW XFJHIU
  25. Blue/Green deployment & canary-release • IstioʹΑΔenvoyͷ׆༻ʹΑΓΑΓෳࡶͳdeploy͕Մೳ 3. τϥϑΟοΫͷϛϥʔϦϯάʹΑΔdark launch BQJ7FSTJPODPOpHJTUJPJPWBMQIB

    LJOE3PVUF3VMF NFUBEBUB OBNFNJSSPSUSB⒏DUFTU TQFD EFTUJOBUJPO OBNFSFWJFXT QSFDFEFODF SPVUF MBCFMT WFSTJPOW XFJHIU MBCFMT WFSTJPOW XFJHIU NJSSPS OBNFSFWJFXT MBCFMT WFSTJPOW
  26. • IstioʹΑΔenvoyͷ׆༻ʹΑΓΑΓෳࡶͳdeploy͕Մೳ 3. τϥϑΟοΫͷϛϥʔϦϯάʹΑΔdark launch http://blog.christianposta.com/microservices/traffic-shadowing-with-istio-reduce-the- risk-of-code-release/ Blue/Green deployment &

    canary-release
  27. Conclusion • Microservice͕ਐΜͩ݁Ռ൥ࡶԽ͞ΕͨServiceMeshΛ IstioͰ੔ཧ͢Δ • Istioͷಋೖ͑͞΋RancherͳΒ༰қʹߦ͑Δ • IsitoͷDark Launch͸ϋϯύͳ͍ʂʂʂʂ

  28. Thank you for your attention!! @track3jyo