RancherDay-Rancher製品説明.pdf

3218b28de1401d518a2fdfa198bec1b5?s=47 cheng
July 24, 2019

 RancherDay-Rancher製品説明.pdf

RancherDay-Rancher全製品説明

3218b28de1401d518a2fdfa198bec1b5?s=128

cheng

July 24, 2019
Tweet

Transcript

  1. RancherͷશϓϩμΫτղઆ

  2. About me Jianqiang Cheng(ちん) Field Engineer at Rancher Labs. Slack:slack.rancher.jp

    Email:cheng@rancher.jp ▪Favorite technologies: Rancher, Kubernetes, Docker, AWS, Jenkins. ▪Certifications: AWS Certified Solutions Architect – Professional Certified Kubernetes Administrator Certified Kubernetes Application Developer
  3. 3 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  4. 4 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  5. 5 What is Rancher 3BODIFS͸ɺίϯςφ؅ཧͷϓϥοτϑΥʔϜΛఏڙ͢ΔΦʔϓϯιʔεɾ ιϑτ΢ΣΞͰ͢ɻ

  6. 6 What is Rancher • Ͳ͜Ͱ΋,VCFSOFUFTΛσϓϩΠɻΦϯϓϨɺΫϥ΢υ ͳͲͷ؀ڥΛލ͍ͰΫϥελͷ؅ཧ͕Ͱ͖Δ • ؅ཧԼʹ͋Δ͢΂ͯͷΫϥελʹର͠ɺूதೝূɺΞΫ ηε੍ޚͳͲͷػೳΛఏڙ

    • )FMNΛϕʔεͱͨ͠Χλϩάػೳ • 1SPNFUIFVTʢϞχλϦϯάʣɺ'MVFOUEʢϩάऔಘʣɺ *TUJPʢαʔϏεϝογϡʣͳͲͷσϑΥϧτ౥ࡌ ಛ௃
  7. 7 What is Rancher *5૊৫಺ͰɺRancher͕Ռͨ͢໾ׂΛࣔ͢ྫ

  8. 8 Rancherͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v2.2.6 n 2019/09ʹϦϦʔε༧ఆ:v2.3 • Windows GA

    Support • ΫϥελʔͷςϯϓϨʔτػೳ • ΫϥελʔͷηΩϡϦςΟεΩϟϯ • Istioػೳ αʔϏεϝογϡ ΛσϑΥϧτ౥ࡌ • ΫϥελʔͷϫʔΧʔͷϊʔυ਺ͷࣗಈҡ࣋
  9. 9 Demo Time n v2.2 Ϋϥελʔߏஙͱ؅ཧ ϢʔβʔೝূɺΞΫηε੍ޚ ΧλϩάػೳʹΑΔΞϓϦσϓϩΠ ӡ༻؂ࢹͱΞϥʔτ௨஌ɺϩάऔಘͱసૹ CI/CD

    n v2.3 Istioػೳ
  10. 10 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  11. 11 What is RKE RKE͸ɺΫϥ΢υɺΦϯϓϨϛεɺٴͼϩʔΧϧ؀ڥʹkubernetesΫϥελ Λ؆୯ʹσϓϩΠͰ͖ΔCLIπʔϧͰ͢ɻ

  12. 12 What is RKE ಛ௃ • ର৅ϊʔυʹ44)઀ଓͯ͠ϓϩϏδϣχϯάΛ࣮ࢪ • LVCFSOFUFTͷ֤छίϯϙʔωϯτ FUDE΍BQJTFSWFSͳ

    Ͳ Λίϯςφͱͯ͠ىಈ • )"ͳΫϥελΛߏஙՄೳ
  13. 13 What is RKE ࢖͍ํ $VTUPNͳͲͷΫϥελʔߏங࣌ʹɺཪͰ͸3,&Λར༻

  14. 14 What is RKE ࢖͍ํ • ࣄલʹΫϥελʔ༻ͷϊʔυΛ༻ҙ • SLFఆٛϑΝΠϧΛ࡞੒ •

    SLF VQ࣮ߦͰΫϥελʔߏங
  15. 15 What is RKE

  16. 16 RKEͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ:v0.2.6 n ࠓޙ΋ެࣜͷ,VCFSOFUFTͷόʔδϣϯΞοϓͷޙ௥͍ܗ ͰɺόʔδϣϯΞοϓͯ͠ߦ͘

  17. 17 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  18. 18 What is k3s • k3s͸ɺCNCFެࣜͷೝূ෇͖ͷܰྔͳKubernetesσΟετϦϏϡʔγϣ ϯͰ͢ɻ

  19. 19 What is k3s • ஫໨౓͕ߴ͍ (JU)VC4UBS਺

  20. 20 What is k3s • .BOBHFELT

  21. 21 What is k3s ಛ௃ • 40 MBόΠφϦɺ250 MBϝϞϦ࢖༻ྔ •

    KubernetesϚελʔɺKubeletɺContainerd͕ɺ όΠφϦ1ͭͰશ෦ೖΓ • ΑΓܰྔͳsqlite3ΛσϑΥϧτͷετϨʔδ .Z42- 1PTUHSFT FUDE΋αϙʔτ • ΑΓܰྔͳContainerdΛσϑΥϧτͷϥϯλΠϜ • ରԠΞʔΩςΫνϟ͸ɺx86_64, ARMv7, ARM64
  22. 22 What is k3s k3sͷSoftware Stack

  23. 23 What is k3s ར༻γʔϯ Edge Dev ϩʔΧϧ։ൃ؀ڥɺΤοδσόΠεͳͲͷͱ͜Ζ • Edge

    • IoT • Dev/Test • Single App Clusters • Embedded in Application
  24. 24 What is k3s ࢖͍ํ • k3sόΠφϦͰΠϯετʔϧ αʔό্ཱ͕͛ k3s server

    --disable-agent Agentϊʔυ௥Ճ k3s agent --server https://myserver:6443 --token • Docker$PNQPTF https://github.com/rancher/k3s/blob/master/docker-compose.yml https://github.com/rancher/k3s/blob/master/docker-compose-agent.yml • k3d(k3s in Docker) https://github.com/rancher/k3d
  25. 25 k3sͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.7.0 n ࠓޙͷόʔδϣϯΞοϓ ։ൃঢ়گʹΑΓɺ೔࣌΍಺༰͕มߋՄೳ • v0.8

    In 2019/08:HAv1.5(external sql db and manually configured LB), k8s 1.15... • v0.9 In 2019/09:HAv2 (KINE, embedded etcd support)
  26. 26 Demo Time n k3dͰϩʔΧϧ؀ڥʹkubernetesΫϥελʔΛߏங લఏ৚݅ • ϩʔΧϧ؀ڥʹɺDocker DesktopΛΠϯετʔϧ •

    ϩʔΧϧ؀ڥʹɺk3dόΠφϦΛΠϯετʔϧ खॱ • ϩʔΧϧ؀ڥͰɺRancherΛ্ཱ͛ • ϩʔΧϧ؀ڥͰɺk3dͰk3sΫϥελʔ (1master+3worker)Λߏங • ϩʔΧϧͷRancher͔Βɺk3sΫϥελʔΛΠϯ ϙʔτ
  27. 27 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  28. 28 What is RancherOS • RancherOS͸ɺDockerίϯςφΛՔಇͤ͞Δ͜ͱʹಛԽͨ͠ϛχϚϜ -JOVYσΟετϦϏϡʔγϣϯͰ͢ɻ

  29. 29 What is RancherOS ಛ௃ • DockerίϯςφΛՔಇͤ͞Δ͜ͱʹಛԽ • αΠζʢ໿100M ʣ͕খ͘͞ىಈ͕ૣ͍

    • OSͷ͢΂͕ͯDockerίϯςφʹΑͬͯ؅ཧ • initγεςϜ΋DockerίϯςφΛར༻
  30. 30 What is RancherOS Πϯετʔϧํ๏ • ISOΠϝʔδ͔Βىಈ • σΟεΫʹΠϯετʔϧͯ͠ىಈ •

    ֤छΫϥ΢υϓϩόΠμʢAWSͳͲʣ͕ఏڙ͢ΔΠϝʔ δΛར༻
  31. 31 RancherOSͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ:v1.5.0 Linux: 4.14.85 Docker docker-18.06.1-ce by default

    n ࠓޙ΋࠷৽%PDLFSόʔδϣϯ ػೳɺόάमਖ਼ ʹ௥ै͢ ΔܗͰɺόʔδϣϯΞοϓͯ͠ߦ͘
  32. 32 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  33. 33 What is k3os • k3os͸ɺkubernetesʹಛԽͨܰ͠ྔOSͰɺܰྔkubernetes σΟετϦϏϡʔδϣϯͰ͋Δ「k3s」Λ૊ΈࠐΜͩ04Ͱ͢ɻ

  34. 34 What is k3os k3sͷSoftware Stack k3osͷSoftware Stack • k3sͱLinuxΛ1ͭʹͨ͠kubernetesʹಛԽͨ͠OSͰ͢ɻ

  35. 35 What is k3os ಛ௃ • k3s࣮ߦʹಛԽͨ͠ϛχϚϜOS • ܰྔͷͨΊɺىಈ͕ૣ͍ •

    UbuntuΧʔωϧΛϕʔε • k3sͱͷ౷߹؅ཧ • ରԠΞʔΩςΫνϟ͸ɺx86_64, ARM
  36. 36 k3osͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.2.1 n ࠓޙ΋࠷৽k3sͱlinuxόʔδϣϯ ػೳɺόάमਖ਼ ʹ௥ै͢ΔܗͰɺόʔδϣϯΞοϓͯ͠ߦ͘

  37. 37 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  38. 38 What is Submariner • Submariner͸ɺෳ਺ͷKubernetesΫϥελؒͷPodωοτϫʔΫ͓ΑͼService ωοτϫʔΫΛܨ͛ΔπʔϧͰ͢ɻ

  39. 39 What is Submariner ར༻γʔϯ • ϚϧνΫϥελʹσϓϩΠ͞Εɼ૬ޓ௨৴Λඞཁ ͢ΔϚΠΫϩαʔϏε • ஍ཧతྖҬΛӽ͑ͨKubernetes಺ͷσʔλϕʔε

    ϨϓϦέʔγϣϯ • ΫϥελΛ·͙ͨαʔϏεϝογϡͷσϓϩΠ
  40. 40 What is Submariner • Broker:ҟͳΔΫϥελʔؒͷIPSec tunnelsΛཱ֬Ͱ͖ΔͨΊͷ৘ใަ׵ͤ͞Δ • GatewayNode :

    IPSec tunnelsΛཱ֬ɺ֎෦Ϋϥελʔ΁ͷΞΫηε͸GatewayNodeΛܦ༝
  41. 41 What is Submariner • طଘͷKubernetesΫϥελʹల։Մೳ • IPSecτϯωϧΛ࢖༻ͨ͠҉߸ԽωοτϫʔΫ઀ଓ • ෳ਺ͷ,VCFSOFUFTΫϥελΛର৅ͱͨ͠αʔϏεσΟε

    ΧόϦΛఏڙ • CNIυϥΠόར༻ͷΫϥελʔͳΒɺରԠՄೳ
  42. 42 What is Submariner ஫ҙࣄ߲ • ΫϥελؒͰҟͳΔΫϥελαʔϏεCIDRΛ࢖༻ • Ϋϥελʔͷϊʔυؒ͸ɺIP઀ଓͰ͖Δ •

    SubmarinerίϯϙωʔτσϓϩΠͷҝ、Helm v2.12.1 ඞཁ
  43. 43 Submarinerͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.0.1 n v0.0.1ͷPre-releaseஈ֊ͰɺޙଓͷRoadmap͕ෆ ໌

  44. 44 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  45. 45 What is Longhorn • Longhorn͸ɺϚΠΫϩαʔϏεͷߏ଄Λج൫ͱͨ͠෼ࢄϒϩοΫετϨʔδ OSSͰ͢ɻ

  46. 46 What is Longhorn ˢ1ͭϘϦϡʔϜͰ3ͭϨϓϦΧΛ࢖༻͢Δ৔߹ͷྫ ཪʹ͸ɺLonghorn͕1つͷίϯτϩʔϥʔPodͱ3ͭͷϨϓϦΧ༻PodΛ࡞੒͍ͯ͠·͢ɻ

  47. 47 What is Longhorn Πϯετʔϧํ๏ • Rancher؅ཧԼͷΫϥελʔ RancherΧλϩάը໘ͰɺϘλϯOneΫϦοΫ • ͦͷͨͷΫϥελʔ

    kubectlʹΑΔΠϯετʔϧ kubectl apply -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/longhorn.yaml helmʹΑΔΠϯετʔϧ helm install ./longhorn/chart --name longhorn --namespace longhorn-system
  48. 48 What is Longhorn ಛ௃ • KubernetesΫϥελʔ΁ͷσϓϩΠ͕؆୯ • ؅ཧ༻ͷWebͷGUIΛఏڙ •

    ϘϦϡʔϜͷεφοϓγϣοτόοΫΞοϓՄೳ(S3,NFS) • KubernetesΫϥελʔͷεέʔϧΞ΢τ࣌ͷࣗಈରԠ • ϚΠΫϩαʔϏεͷߏ଄ͷҝɺো֐ͷӨڹΛ࠷খݶ
  49. 49 Longhornͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.5.0 n ࠓޙ

  50. 50 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

  51. 51 What is Rio • Rio͸ɺkubernetesͷҝͷMcrioPaasͰ͢ɻ

  52. 52 What is Rio • ओͳಛ௃ McrioPaas = ܰྔ൛ͳPass n

    Paasతͳػೳ • Pipeline͔Βӡ༻؂ࢹػೳ·ͰΛΧόʔ • Ϛϧνςφϯτʢෳ਺ͷΞϓϦʣରԠ • ΠϯϑϥΛҙࣝ͠ͳ͍ • Run everywhere(k8s) n ܰྔͰ͋Δ • Kubernetes΍IstioͳͲͷΤίγεςϜΛ૊Έ߹ΘͤͰ࡞੒ • ϞδϡϥʔΞʔΩςΫνϟͰɺෆཁͳػೳΛ֎ͤΔ • KubernetesͷطଘͷػೳΛมߋ͠ͳ͍ • ϩʔΧϧ؀ڥ k3s Ͱ΋ՔಇͰ͖Δ
  53. 53 What is Rio • ৄࡉػೳ

  54. 54 What is Rio Πϯετʔϧํ๏ # Download the CLI (available

    for macOS, Windows, Linux) $ curl -sfL https://get.rio.io | sh - # Setup your cluster for Rio $ rio install
  55. 55 What is Rio

  56. 56 Rioͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.2.0 n ࠓޙ΋࠷৽k8sͱistioͳͲͷΤίʔγεςϜ ػೳɺ όάमਖ਼ ʹ௥ै͢ΔܗͰɺόʔδϣϯΞοϓͯ͠

    ߦ͘
  57. Thanks