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

RancherDay-Rancher製品説明.pdf

cheng
July 24, 2019

 RancherDay-Rancher製品説明.pdf

RancherDay-Rancher全製品説明

cheng

July 24, 2019
Tweet

More Decks by cheng

Other Decks in Technology

Transcript

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

    Email:[email protected] ▪Favorite technologies: Rancher, Kubernetes, Docker, AWS, Jenkins. ▪Certifications: AWS Certified Solutions Architect – Professional Certified Kubernetes Administrator Certified Kubernetes Application Developer
  2. 6 What is Rancher • Ͳ͜Ͱ΋,VCFSOFUFTΛσϓϩΠɻΦϯϓϨɺΫϥ΢υ ͳͲͷ؀ڥΛލ͍ͰΫϥελͷ؅ཧ͕Ͱ͖Δ • ؅ཧԼʹ͋Δ͢΂ͯͷΫϥελʹର͠ɺूதೝূɺΞΫ ηε੍ޚͳͲͷػೳΛఏڙ

    • )FMNΛϕʔεͱͨ͠Χλϩάػೳ • 1SPNFUIFVTʢϞχλϦϯάʣɺ'MVFOUEʢϩάऔಘʣɺ *TUJPʢαʔϏεϝογϡʣͳͲͷσϑΥϧτ౥ࡌ ಛ௃
  3. 8 Rancherͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ :v2.2.6 n 2019/09ʹϦϦʔε༧ఆ:v2.3 • Windows GA

    Support • ΫϥελʔͷςϯϓϨʔτػೳ • ΫϥελʔͷηΩϡϦςΟεΩϟϯ • Istioػೳ αʔϏεϝογϡ ΛσϑΥϧτ౥ࡌ • ΫϥελʔͷϫʔΧʔͷϊʔυ਺ͷࣗಈҡ࣋
  4. 21 What is k3s ಛ௃ • 40 MBόΠφϦɺ250 MBϝϞϦ࢖༻ྔ •

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

    • IoT • Dev/Test • Single App Clusters • Embedded in Application
  6. 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
  7. 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)
  8. 26 Demo Time n k3dͰϩʔΧϧ؀ڥʹkubernetesΫϥελʔΛߏங લఏ৚݅ • ϩʔΧϧ؀ڥʹɺDocker DesktopΛΠϯετʔϧ •

    ϩʔΧϧ؀ڥʹɺk3dόΠφϦΛΠϯετʔϧ खॱ • ϩʔΧϧ؀ڥͰɺRancherΛ্ཱ͛ • ϩʔΧϧ؀ڥͰɺk3dͰk3sΫϥελʔ (1master+3worker)Λߏங • ϩʔΧϧͷRancher͔Βɺk3sΫϥελʔΛΠϯ ϙʔτ
  9. 29 What is RancherOS ಛ௃ • DockerίϯςφΛՔಇͤ͞Δ͜ͱʹಛԽ • αΠζʢ໿100M ʣ͕খ͘͞ىಈ͕ૣ͍

    • OSͷ͢΂͕ͯDockerίϯςφʹΑͬͯ؅ཧ • initγεςϜ΋DockerίϯςφΛར༻
  10. 31 RancherOSͷݱঢ়ͱࠓޙ n ݱࡏͷ࠷৽όʔδϣϯ:v1.5.0 Linux: 4.14.85 Docker docker-18.06.1-ce by default

    n ࠓޙ΋࠷৽%PDLFSόʔδϣϯ ػೳɺόάमਖ਼ ʹ௥ै͢ ΔܗͰɺόʔδϣϯΞοϓͯ͠ߦ͘
  11. 35 What is k3os ಛ௃ • k3s࣮ߦʹಛԽͨ͠ϛχϚϜOS • ܰྔͷͨΊɺىಈ͕ૣ͍ •

    UbuntuΧʔωϧΛϕʔε • k3sͱͷ౷߹؅ཧ • ରԠΞʔΩςΫνϟ͸ɺx86_64, ARM
  12. 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
  13. 48 What is Longhorn ಛ௃ • KubernetesΫϥελʔ΁ͷσϓϩΠ͕؆୯ • ؅ཧ༻ͷWebͷGUIΛఏڙ •

    ϘϦϡʔϜͷεφοϓγϣοτόοΫΞοϓՄೳ(S3,NFS) • KubernetesΫϥελʔͷεέʔϧΞ΢τ࣌ͷࣗಈରԠ • ϚΠΫϩαʔϏεͷߏ଄ͷҝɺো֐ͷӨڹΛ࠷খݶ
  14. 52 What is Rio • ओͳಛ௃ McrioPaas = ܰྔ൛ͳPass n

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