Azure-AWS-GCP managed kubernetes Considering 2019

Azure-AWS-GCP managed kubernetes Considering 2019

Azure Tech Lab #2 Mar 6, 2019

Bf5ee9059859ed5d855b5ff4680e63e2?s=128

track3jyo-hama

March 06, 2019
Tweet

Transcript

  1. Azure/AWS/GCP managed kubernetes Considering 2019 Azure Tech Lab #2 Mar

    6, 2019 Hama Shinichi(@track3jyo)
  2. WHO?? • Hama Shinichi(@track3jyo) • Kobe Digital Labo Inc. -

    Cloud Native Team • Senior Cloud Architect • Azure like:AKS • Rancher Meetup,KUJIRAYA,CNJP • Tech books,Rakugo!
  3. None
  4. None
  5. division specializing in cyber security

  6. Microsoft Mixed Reality Partner Program

  7. developed FA Cloud specialized high-speed cloud service for manufacturing industry

  8. What things will you bring home today • About the

    passion of the Kubernetes • Explanation of differences and impressions of using each managed service • It is the same to realize • Company A can not completely do what Company B can do
  9. Agenda 1. About Kubernetes 2. Kubernetes Cloud Services 3. Compare

    AKS, GKE and EKS 4. Conclusions
  10. Q: Do you use kubernetes for your business?

  11. Q: How well do you use containers for your business?

  12. Purpose of using containers and kubernets • ίϯςφΛΠϯϑϥٕज़ͱଊ͑ͯ·ͤΜ͔ʁ • ίϯςφ͸ΞϓϦέʔγϣϯͷσϓϩΠʹಛԽٕͨ͠

    ज़ • ϙʔλϏϦςΟͷඇৗʹߴ͍ΞϓϦͱΠϯϑϥΛؚΜ ͩശ %JHJUBMUSBOTGPSNBUJPO%9 "HJMFEFWFMPQNFOU .JDSPTFSWJDF %FW0QT
  13. What I think about Microservice And Container Ϗδωεڝ૪ྗͷ͋Διϑτ΢ΣΞΛϦϦʔε͢Δ Ϗδωεڝ૪ྗΛߴΊΔͨΊʹ͸εϐʔυײ͕େ੾ εϐʔυײΛϚΠΫϩαʔϏεΞʔΩςΫνϟͱ

    *NNVUBCMF*OGSBTUSVDUVSFʹΑ࣮ͬͯݱ͢Δ ϚΠΫϩαʔϏεʹΑΔಠཱɾཱࣗͨ͠νʔϜ࡞ΓͰ ࣗ૸ՄೳͳνʔϜ͕εϐʔυײΛੜΈग़͢
  14. Can you use Docker as it is in production? •

    ίϯςφӡ༻͢Δ্Ͱͷ՝୊ ෳ਺/PEFͷ؅ཧ ΦʔτεέʔϦϯά ΤίγεςϜͱͷ࿈ܞͳͲͳͲ αʔϏεσΟεΧόϦ ࢮ׆؂ࢹηϧϑώʔϧϯά ίϯςφͷΞοϓσʔτ EFQMPZ εέδϡʔϦϯά
  15. What's Kubernetes Kubernetes • ίϯςφԽ͞ΕͨΞϓϦέʔγϣϯ ͷdeploy,ઃఆ,؅ཧΛࣗಈతʹߦ͏ OSS(ΦʔέετϨʔγϣϯ) • ಉ༷ͷιϑτ΢ΣΞ͸Docker swarm΍Mesos

    • ͢΂ͯͷίϯςφΛେن໛ʹ؅ཧͰ͖ΔΑ͏ʹ͢Δ • ߏ੒৘ใ͸yamlͰએݴతʹهड़͠ɺAPIͰొ࿥/ߋ৽ • CNCF͕ϗετ(ݩ͸Google͕ར༻͍ͯͨ͠Borg)
  16. Kubernetes can do 1. ෳ਺ϗετͷ؅ཧɺίϯςφͷεέδϡʔϦϯάɻ ʢΠϯϑϥͷந৅ԽɺϦιʔεͷޮ཰త׆༻ʣ 2. ো֐࣌ͷηϧϑώʔϦϯάʢ؂ࢹίετ࡟ݮʣ 3. αʔϏεσΟεΧόϦ

    4. ϩʔυόϥϯγϯά 5. ϩʔϦϯάΞοϓσʔτ 6. etc...
  17. CNCF overview • CNCF͸Kubernetesͱͱ΋ ʹൃ଍ • KubernetesΛத৺ʹCNCF ͷ؅ཧ͢ΔϓϩδΣΫτ͕ ͦΕʹ෇ਵ͢ΔΤίγες Ϝͱ֦ͯ͠େ͍ͯ͠Δ

  18. CNCF Projects Graduated Projects Incubating Projects Sandbox Projects

  19. What's Cloud Native • ༷ʑͳΫϥ΢υ(ϕϯμʔϨε)ͷ্Ͱ֦ுੑͷߴ͍ΞϓϦέʔγϣϯΛߏ ங͓Αͼ࣮ߦ͢ΔͨΊͷྗΛ૊৫ʹఏڙ͢Δ΋ͷ https://github.com/cncf/toc/blob/master/DEFINITION.md ྫɿίϯςφ,ϚΠΫϩαʔϏε&αʔϏεϝογϡ,ImmutableͳΠϯϑϥ,એݴతͳAPI࣮ߦ

  20. Why "Cloud" Native • ΋ͪΖΜΦϯϓϨϛεͰ΋Kuberenetes͸ར༻Մೳ • Cloud্Ͱk8sಈ͔͢͜ͱͰɺΑΓͦͷbenefitΛڗडͰ ͖Δ Cloud͕ຊ౰ͷҙຯͰCloudͨΓ͏ΔͨΊͷKuberenets

  21. In On-premise

  22. In Cloud • ຊ౰ʹܹมͨ͠ͷͰ͠ΐ͏͔ʁ

  23. CloudʹӢ ͑ɺ΄ΜͱӢͷ্?

  24. ௨ఱֳͷ্͘Β͍͡Όͳ͍ʁ

  25. ๻͕ͨͪຊ౰ʹ࡞Γ͍ͨ΋ͷ Ϗδωεͱͯ͠׬੒͍ͤͨ͞΋ͷ͸ʁ

  26. Is it like this? • ͜͏͍͏ͷͰ͢ΑͶ? • ·ͲΖ͍ͬ͜͠΋ͷΛ΄ͱΜͲؾʹͤͣඞཁͳ΋ͷΛ Ά͜Ά͜ىಈ͓ͤͯۚ͞΍ੈͷதʹΠϯύΫτΛ༩͑Δ ੈք

  27. Realize Cloud Native with Kuberenetes • NodeࣗମΛந৅ԽͰ͖Δ • NodeͷڠྗͳΦʔτεέʔϧ •

    Ϋϥ΢υ্ͰKuberenetesΛಈ͔͢͜ͱͰඞཁͳϦιʔ ε͸ඞཁͳ෼͚ͩىಈ͍ͯ͘͠ੈք Node 01 Node 02 Node 03 pod API-1 pod API-1 pod API-1 pod API-1 pod API-2 pod DB ɾɾɾɾ Node N pod API-1 pod DB ඞཁͳ࣌ʹىಈ/࡟আ
  28. ͯ͞ɺࠓ౓ͦ͜׬શʹந৅Խ͞Εͨ Ͱ͠ΐ͏͔ʁ

  29. ͞Εͯ·ͤΜɻ

  30. Components of Kuberenetes • Master-workerɻඞཁͳͷ͸Worker͚ͩͳ͸ͣ • Masterͷ؅ཧந৅Խ͞Εͯ·ͤΜ • ͦ΋ͦ΋͜ͷKubernetesͷ؀ڥ͸୭͕Ͳ͏࡞Δͷʁ •

    ߏங͕ந৅Խ͞Εͯ·ͤΜ ࢀর:https://qiita.com/tkusumi/items/c2a92cd52bfdb9edd613 Master΋ந৅Խ͍ͨ͠
  31. Kubernetes The Hard Way https://github.com/kelseyhightower/kubernetes-the-hard-way

  32. Managed ServiceΛ࢖͍·͠ΐ͏

  33. Kubernetes Cloud Services • GKE 2014೥11݄ϩʔϯν 2015೥08݄ GA • AKS

    2017೥02݄ϩʔϯν 2018೥06݄ GA • EKS 2017೥11݄ϩʔϯν 2018೥06݄ GA Google GKE (Google Kubernetes Engine) Azure AKS (Azure Kubernetes Service) Amazon EKS (Elastic Container Service for Kubernetes)
  34. Kubernetes Cloud Services • جຊ࣮ݱ͍ͨ͜͠ͱ͸ಉ͡Ͱ͋Δ • MasterίϯϙʔωϯτͷManaged • ͦΕͧΕͰಛ௃ͩͬͨΓɺͪΐͬͱͨ͠࢖͍উख͕ ҧ͏

  35. Compare AKS, GKE and EKS at 2019 March (,& ",4

    &,4 LTόʔδϣϯ    5PLZPϦʔδϣϯ ̋ ̋ ̋ Ϋϥελͷ࡞੒࣌ؒ NJO NJO NJO .BOBHFE8PSLFSOPEF ̋ ̋ º ϕΞϝλϧ º º ̋ (164VQQPU ̋ ̋ ̋ ΫϩεϦʔδϣϯϩʔυόϥϯγϯά ̋ º º LTΞοϓάϨʔυ ̋ ̋ ̋ LTΞοϓάϨʔυ࣌ؒ NJOTFD NJOTFD NJO 7JSUVBM/PEF º 7JSUVBM,VCFMFU º .BTUFS.VMUJ"; ̋ º ̋ 8PSLFS/PEF.VMUJ"; $POUBJOFS/BUJWF-PBECBMBODJOH ˕ $POUBJ/BU-PBECBMBODJOH ˚ "QQ(BUFXBZ ̋ BMCJOHSFTTDPOUPSPMMFS /FUXPSL1PMJDZ ̋ $BMJDP ˚ ,VCF3PVUFS ̋ $BMJDP (6*ͷਫ਼౓ ˚ ˕ ˚
  36. Compare AKS, GKE and EKS at 2019 March • GKEͱAKS͸ɺ՝ۚର৅͸Workder

    Node͚ͩ • Master͸ແྉ!! • EKS ͸ɺMaster Nodeʹ΋՝ۚର৅ɻߴՁ 4 Worker (2ίΞ, ϝϞϦ8GB,SSD 50GB) clusterͷֹۚ ֹ݄ྉۚ (,& OTUBOEBSE ໿ ԁ ",4 %W ໿ ԁ &,4 NMBSHF ໿ ԁ ໿ ԁ NBTUFS
  37. Compare AKS, GKE and EKS at 2019 March • Tips

    • AKS͸ADʹΑΔΞΫηε੍ޚ΍Virtual Kubelet • UI͸΍ͬͺΓAKS͕࠷ڧ • EKS͸IAM΍ɺ΍͸ΓଞͷϫʔΫϩʔυΛAWSͰಈ͔ ͍ͯ͠Δਓ΋ଟ͍݉Ͷ߹͍Ͱࠓ΋ڧ͍ • Fargateͱͷ࿈ܞʹظ଴
  38. Compare AKS, GKE and EKS at 2019 March • Service

    Meshʹ͍ͭͯ • GKE͸IstioͷΦϓγϣϯ͋Γ • AKS͸Service FablicMeshͷPublicϓϨϏϡʔ • EKS΋AppMesh͕ύϒϦοΫϓϨϏϡʔ Istio Azure Service Fabric Mesh AWS App Mesh
  39. Compare AKS, GKE and EKS at 2019 March • Service

    MeshͷϚωʔδυαʔϏεͷ੒௕͸k8sɺ CloudNativeΞʔΩςΫνϟɺͦͯࣗ͠཯తDeployͷະ དྷΛҰؾʹՃ଎ͤ͞Δ͸ͣͳͷͰظ଴ -# &OWPZ &OWPZ &OWPZ 7 7 .- access log access log
  40. Conclusion • GKE͕ΤϯδχΞͱͯ͠ͷ࢖͍উख͕Ұ൪ྑ͍ • UI͸AKS • AKSʹ͸όϥϯαʔ౷߹΋͏ͪΐͬͱؤுͬͯཉ͍͠ • ίϛϡχςΟͷڧ͞ͱ੒௕౓ͷEKS •

    ϚωʔδυαʔϏεͰ࣮ݱͰ͖Δ͜ͱ͸͋͘·Ͱಉ͡ • ϚωʔδυαʔϏεͰk8sʹ௅ઓ͠·͠ΐ͏
  41. Thank you for your attention!! please follow me @track3jyo