CNDK2019-Rancher製品説明1128

3218b28de1401d518a2fdfa198bec1b5?s=47 cheng
November 28, 2019

 CNDK2019-Rancher製品説明1128

CNDK2019-Rancher製品説明1128

3218b28de1401d518a2fdfa198bec1b5?s=128

cheng

November 28, 2019
Tweet

Transcript

  1. RancherͷϓϩμΫτͱϓϩδΣΫτղઆ

  2. About me Jianqiang Cheng(ͪΜ) Field Engineer at Rancher Labs. cheng@rancher.com

    cheng@slack.rancher.jp ▪Favorite technologies: Rancher, Kubernetes, AWS, Jenkins. ▪Certifications:
  3. 3 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

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

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

  6. Rancher is delivering Kubernetes Everywhere Unified Cluster Operations Self Service

    Kubernetes Environments Infrastructure GKE AKS EKS Any RKE RKE - User Interface - Service Catalog - CI/CD - Monitoring - Logging - Alerting Ops Dev - Provisioning - Auth/RBAC - Policy - Security - Capacity
  7. App Catalog CI/CD Monitoring Logging Security RBAC & PSP Registry

    Container Runtime Network & Storage Service Mesh Authentication Kubernetes What Rancher takes an SLA on Manage all this? … or this? What does Rancher cover? Rancher Certified Integrations
  8. 8 What is Rancher • Ͳ͜Ͱ΋,VCFSOFUFTΛσϓϩΠɻΦϯϓϨɺΫϥ΢υ ͳͲͷ؀ڥΛލ͍ͰΫϥελͷ؅ཧ͕Ͱ͖Δ • ؅ཧԼʹ͋Δ͢΂ͯͷΫϥελʹର͠ɺूதೝূɺΞΫ ηε੍ޚͳͲͷػೳΛఏڙ

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

  10. 10 Rancherͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v2.3.2 n 2020/03ʹϦϦʔε༧ఆ:v2.4 • ؅ཧର৅Ϋϥελ ˠ

     ͱϊʔυ਺ ˠ  ͷ૿Ճ • Rancher HAߏஙͷ؆қԽ • RKEΫϥελʔͷθϩ μ΢ϯλΠϜ ΞοϓάϨʔυ • ΫϥελʔͷηΩϡϦςΟεΩϟϯͱΞϥʔϜ௨஌
  11. 11 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

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

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

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

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

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

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

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

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

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

  21. 21 What is k3s k3sͷSoftware Stack

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

    KubernetesϚελʔɺKubeletɺContainerd͕ɺ όΠφϦ1ͭͰશ෦ೖΓ • ΑΓܰྔͳsqlite3ΛσϑΥϧτͷετϨʔδ MySQL, Postgres, etcd΋αϙʔτ • ΑΓܰྔͳContainerdΛσϑΥϧτͷϥϯλΠϜ • ରԠΞʔΩςΫνϟ͸ɺx86_64, ARMv7, ARM64
  23. 23 What is k3s ར༻γʔϯ Edge Dev ϩʔΧϧ։ൃ؀ڥɺΤοδσόΠεͳͲͷͱ͜Ζ • Edge

    • IoT • Dev/Test • Single App Clusters • Embedded in Application
  24. 24 What is k3s • .BOBHFELT

  25. Managed k3s In Cloud A learning playground, development or staging

    cluster Much cheaper($5〜), quicker to launch(2min)
  26. 26 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
  27. 27 k3sͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v1.0.0 GA Kubernetes v1.16.3ରԠ n ࠓޙ΋ެࣜͷ,VCFSOFUFTͷόʔδϣϯΞοϓͷ

    ޙ௥͍ܗͰɺόʔδϣϯΞοϓͯ͠ߦ͘
  28. 28 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

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

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

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

    UbuntuΧʔωϧΛϕʔε • k3sͱͷ౷߹؅ཧ • ରԠΞʔΩςΫνϟ͸ɺx86_64, ARM
  32. 32 k3osͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.7.1 k3s v1.0.0ରԠ n ࠓޙ΋࠷৽k3sͱlinuxόʔδϣϯ ػೳɺόάमਖ਼

    ʹ௥ै͢ΔܗͰɺόʔδϣϯΞοϓͯ͠ߦ͘
  33. 33 Rancher LabsϓϩμΫτͱϓϩδΣΫτ

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

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

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

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

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

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

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

  41. 41 What is Longhorn Ҿ༻:https://speakerdeck.com/cyberblack28/cncf-sandbox-project-longhorn

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

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

  44. 44 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
  45. 45 What is Longhorn ಛ௃ • KubernetesΫϥελʔ΁ͷσϓϩΠ͕؆୯ • ؅ཧ༻ͷWebͷGUIΛఏڙ •

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

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

  48. 48 What is Rio • Rio͸ɺKubernetesϕʔεͷMicroPaaSͰ͢ɻ

  49. 49 What is Rio • ओͳಛ௃ McrioPaaS = ܰྔ൛ͳPaaS n

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

  51. 51 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
  52. 52 What is Rio

  53. 53 Rioͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v0.6.0 (Beta) n ࠓޙ΋࠷৽k8sͱistioͳͲͷΤίʔγεςϜ ػೳɺ όάमਖ਼

    ʹ௥ै͢ΔܗͰɺόʔδϣϯΞοϓͯ͠ ߦ͘
  54. Thanks