Kubernetes and Cloud Native Products ~Cloud Native Kansai #2~ / cnjp_kansai_2_amsy810

Kubernetes and Cloud Native Products ~Cloud Native Kansai #2~ / cnjp_kansai_2_amsy810

Twitter: @amsy810
Masaya Aoyama@CyberAgent
adtech studio

De266761b955b2636e454a1bc7a99ed4?s=128

Masaya Aoyama (@amsy810)

March 15, 2019
Tweet

Transcript

  1. Masaya Aoyama CyberAgent adtech studio Cloud Native࣌୅ʹ͓͚Δ Docker / Kubernetes

    ʹΑΔ։ൃ Developers Summit 2019 at 02/14 ࢿྉ: http://bit.ly/devsumi 2019 k8s MasayaAoyama @amsy810 Masaya Aoyama CyberAgent adtech studio Kubernetes and Cloud Native Products Cloud Native Kansai #2 MasayaAoyama @amsy810
  2.       

  3. None
  4. None
  5. None
  6.          

  7. &7:)D B/;E Kubernetes +$ Docker / K8s =< Japan Container

    Days v18.04Google Cloud K8s Day Keynote .(%8*#   0-?6 AWS Dev Day TokyoIBM Think Japan  CKA #138CKAD #2 Masaya Aoyama (@amsy810) Infrastructure Engineer  Co-chair - Cloud Native Days Tokyo D2 Japan Container DaysE Organizer - Cloud Native Meetup Tokyo Organizer - Kubernetes Meetup Tokyo Organizer - KubeCon 13"5# Contribute to OpenStack and Kubernetes !4' KaaS ,> / A9 K8s C@ 
  8.   Kubernetes  

  9. Instagramable Kubernetes K

  10. Docker / Kubernetes   

  11. 4@@ 1- 1 01/ / /4 D- -0- 0 AA1-

    C1.- A -01 A-: @1C 418 4A- @- -. A2-8 1DA: D : 4 8 4@@ 1- 1 01/ / C- D 81 -/D @ / :@- :1 4@@ 1- 1 01/ / - -D-- D- - - .-1 1:@ : 1 A A - .1@ :@1:- -: - 1C 4 1 A 4A D.1 1:@ - -: :@- :1 -D
  12. Agenda • Cloud Native and Kubernetes • Docker and Kubernetes

    Overview • Custom Resource and Operator (Custom Controller) • Cloud Native Products • Future of Kubernetes
  13. Cloud Native and Kubernetes What is Kubernetes? What is Cloud

    Naitve?
  14. CNCF and The Linux Foundation • Kubernetes The Linux Foundation

    CNCF  •     
  15. Cloud Native Cloud native technologies empower organizations to build and

    run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. Containers, service meshes, microservices, immutable infrastructure, and declarative APIs exemplify this approach. These techniques enable loosely coupled systems that are resilient, manageable, and observable. Combined with robust automation, they allow engineers to make high-impact changes frequently and predictably with minimal toil. The Cloud Native Computing Foundation seeks to drive adoption of this paradigm by fostering and sustaining an ecosystem of open source, vendor-neutral projects. We democratize state-of-the-art patterns to make these innovations accessible for everyone. CNCF Cloud Native Defenition v1.0, CNCF, 2018-11-28 (https://github.com/cncf/toc/blob/master/DEFINITION.md)
  16. Cloud Native— -N);>(9'DoŽADO8--N);EN(FT:-N);@(D O8;-N);“X~6(<H8-{f3.TNDP&E O.T1MR%tƒh "‹]%„ˆ   &E QT7XY/R9<0TB3J81LG(-Q0TB3(HLT6

    DP(RCN3:N-7Ki‘dAPI !  # nv!ckl‚z]awl"}…b139I h y   # %exŒ_`„b$" +R2=&(RA-: "gr%sj•^]–‡Ww!     Cloud Native Computing Foundation,TER4T3FR6TU€EQ2*-: +/139I%ŠmS†p  AN6(Iq|%Z” ‰  s[A5TR%uV`  # (?FT1MR%’ \|  "   CNCF Cloud Native Defenition v1.0, CNCF, 2018-11-28 (https://github.com/cncf/toc/blob/master/DEFINITION.md)
  17. Cloud Native 8 Cloud native technologies empower organizations to build

    and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. Containers, service meshes, microservices, immutable infrastructure, and declarative APIs exemplify this approach. These techniques enable loosely coupled systems that are resilient, manageable, and observable. Combined with robust automation, they allow engineers to make high-impact changes frequently and predictably with minimal toil. The Cloud Native Computing Foundation seeks to drive adoption of this paradigm by fostering and sustaining an ecosystem of open source, vendor-neutral projects. We democratize state-of-the-art patterns to make these innovations accessible for everyone. CNCF Cloud Native Defenition v1.0, CNCF, 2018-11-28 (https://github.com/cncf/toc/blob/master/DEFINITION.md) • .0  • & • /- • 4*  • + 3 71 )%5 ($6 " !'2 Open Scalable #,
  18. Kubernetes is key product for Cloud Native Computing Cloud Native

    Ecosystem
  19. None
  20. Docker and Kubernetes Overview Primote Cloud Native

  21. Docker Swarm mode Container Orchestration Engine

  22. Container Orchestration Engine (4/0 • 3*Docker2/ • # $ #

    •  $ # / $ $ # • "$ # $ • #-.15 • 6&+!$ # • $ • "$# # • $,')%2/
  23. Container Orchestration Engine CY OP • XE Docker*" SO •

    1 $ ,2.1 • 2.1 / 2"2.1 • 02.1)!2" • 1 $ KLRZ • ^>F /(&2.1 • 2'!%. • 02#%-11 • !2J?D; SO Container Orchestration Engine CY OP • QT9  + • B34 • SO • 8[M  • :N W67 _U IA \ H@] 54 = <G 8V
  24. What is doing Kubernetes? Declarative Code & APIs Self-Healing Automation

    & Immutable Infrastructure
  25. Kubernetes  Design Principles, Kubernetes Community, 2017-11-04 (https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/principles.md) 02 03

    01 Self Healing  ) #"  Automation & Immutable Infrastructure Immutable Infrastructure& # Declarative Code & API  Manifests$" %'API !( Infrastructure as Code
  26. Declarative Code and APIs Developer Register YAML Manifest Kubernetes Cluster

    Manifests API  Infrastructure as Code $ kubectl apply –f manifest.yaml
  27. Pod       

  28. Pod       

  29.        Load Balancer

  30.        Load Balancer

  31. ReplicaSet  Self-Healing • ReplicaSet  Replica  • =

    Node  Node
  32. ReplicaSet  Rolling Update (Automation) • #%"$ /) • $!%

    % • Immutable Infrastructure • #%"$ .& Load Balancer Developer (,   '* Deployment+-
  33. ReplicaSet  Rolling Update (Automation) •   • 

        • Immutable Infrastructure •   Load Balancer
  34. ReplicaSet  Rolling Update (Automation) •   • 

        • Immutable Infrastructure •   Load Balancer
  35. ReplicaSet  Rolling Update (Automation) •   • 

        • Immutable Infrastructure •   Load Balancer
  36. Key points • KubernetesGoogle=/A3.  + #(&$,'Borg%,OSS1  → ;*,),"25<>1

     ?01846 • 7@1 $!*,9-YAML:  → Infrastructure EngineerBOpsC . Server-side Engineer BDevC.
  37.      

  38. Kubernetes is Framework and Distributed System Custom Resource Definition

  39. , -Kubernetes  Design Principles, Kubernetes Community, 2017-11-04 (https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/principles.md) 02

    03 01 Self Healing  + %$ ! Automation & Immutable Infrastructure Immutable Infrastructure( % Declarative Code & API " Manifests&$ ')API #* Infrastructure as Code
  40.  Kubernetes Developer     

  41.  Kubernetes Developer    """ " " 

      /!  
  42.  Kubernetes Developer  !$ % % %%% 1. "

    2.  # 3.   → Control Loop
  43. … Developer  -1 0+) &' )  ! )

      1. +*# .( 2. +*#,"*# %/ 3. , $ → Control Loop
  44. ReplicaSet  *2 + Developer  18 Pod (36 #4

    $Pod ' 9 Pod ' 9 1. / .&5- 2. / .&0%.&,7 3. " ! 0 ) → Control Loop
  45. Custom Resource Definition Developer      1.

     2.  3.    → Control Loop
  46. Custom Resource Definition Developer   Kubernetes Pod  Queue

     
  47. Custom Resource Definition Developer      

    
  48. , -Kubernetes  Design Principles, Kubernetes Community, 2017-11-04 (https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/principles.md) 02

    03 01 Self Healing  + %$ ! Automation & Immutable Infrastructure Immutable Infrastructure( % Declarative Code & API " Manifests&$ ')API #* Infrastructure as Code
  49. Cloud Native Products on Kubernetes Managed with/on Kubernetes

  50. XaaS on Kubernetes Ceph as a Service Rook MySQL as

    a Service Vitess Queue as a Service NATS ML as a Service Kubeflow $ CRD + Operator &Vitess%' Operator  #!  etcdmysqlmemcachedredis "
  51. Networking and CI/CD with CRD • Networking • Service MeshIstio

    • BackendConfig on GCP Ingress • CDNAppArmorDDoSIdentity-Aware Proxy  • CI/CDArgo • CI/CD  YAML 
  52. More and more, Cloud Native Products At Japan Container Days

    Tokyo v18.12 https://speakerdeck.com/masayaaoyama/jkd1812-cloudnativemeetup
  53.     CRD  Kubernetes  Cloud OS

  54. Future of Kubernetes Kubernetes is becoming de-facto standard in the

    future?
  55. KubeCon + CloudNativeCon KubeCon + CloudNativeCon Barcelona 2019 Call for

    Proposals (CFP) Is Open, CNCF, 2018-11-28 (https://www.cncf.io/blog/2018/11/16/kubecon-barcelona-2019-call-for-proposals-cfp-is-open/)
  56. Google Kubernetes Engine Managed Kubernetes Serivce Azure Kubernetes Service 2014-11

    2017-02 2017-11 Amazon Elastic Container Service for Kubernetes
  57. Kubernetes for Enterprise •      

    Monzo Bank • Kubernetes + Linkerd (Service Mesh) Building a Modern Bank Backend, Monzo Bank Ltd, 2018-11-28 (https://monzo.com/blog/2016/09/19/building-a-modern-bank-backend/)
  58. CNCFStandardization 01.     " (!) OCI v1.0

    02.     #  CRI 03.   #  CSI 04. #  CNI
  59. CNCF Community Presentation, CNCF, 2018 (https://github.com/cncf/presentations)

  60. Kubernetes  

  61. 3 I H uNs P /D 6 IBK c a

    io sy P   0 C 1 DD 3 I H W3 I HS M 3 I H & 72 uNs C ID 9 CD H uNs 0BH K L 4 uNs / B 8I uNs /D HI uNs 5 I I uNs uNs N snN s h l o y f fl y s N snr N tk ye & hs c N uNsu ghd v o y /2 /0 fl N s 8 KB 5 HA 3 I H dNkyl 3 I H b
  62. What is mastering kubernetes? Kubernetes81# B= GHE.0FE 0FE GHE 1AIJL

    9R 3C ;% .;> 2<#,+-" O  ;%  9QC/&)(-" 5P!*L? Helm / Ksonnet / Datadog / Prometheus Istio / Jenkins X / Skaffold / Fluentd… M: 7D 4K 288 @ M: )$'" 4K 185 YAML M: N6 4K 199 N6
  63. None
  64. Cloud Native Days Tokyo  : Japan Container Days 

      
  65. Thank you for your attention follow me: @amsy810