Slide 1

Slide 1 text

Masaya Aoyama CyberAgent adtech studio Docker / KubernetesʹΑΔ Cloud Nativeͳ։ൃͱະདྷ Developers Boost at 12/15 MasayaAoyama @amsy810

Slide 2

Slide 2 text

Cloud Native Days Tokyo co-chair Cloud Native Meetup Tokyo Organizer (+ JKD+ KubeCon ) Japan Container Days v18.04 Keynote (+ IPSJ ComSys 2018) for Kubernetes CKA #138CKAD #2 OpenStack / Kubernetes Contributor Masaya Aoyama (@amsy810) Infrastructure Engineer

Slide 3

Slide 3 text

Instagramable Kubernetes

Slide 4

Slide 4 text

page 04 : 10:20 : 2:30 12:10 15:30 18:05 SEA ! Kubernetes Contributors Summit KubeCon + CloudNativeCon NRT!SEA " # NRT

Slide 5

Slide 5 text

What is Container (Docker)? Docker Container Orchestration Engine

Slide 6

Slide 6 text

Docker • Docker-Application Container '0*& $2 • %(# 6531" • DevOps/+4), / !. page 06

Slide 7

Slide 7 text

Docker Immutable Infrastructure page 07 FROM centos:7 RUN yum -y install epel-release RUN yum -y install nginx COPY nginx.conf /etc/nginx/ ENTRYPOINT ["nginx", "-g", "daemon off;"] Build Once, Docker Image

Slide 8

Slide 8 text

Docker Immutable Infrastructure page 08 Build Once, Run Anywhere Docker Image CentOS 7 (3.x Kernel) Ubuntu 18.04 (4.x Kernel)

Slide 9

Slide 9 text

Docker Swarm mode Container Orchestration Engine

Slide 10

Slide 10 text

Container Orchestration Engine (4/0 • 3*Docker2/ • # $ # • $ # / $ $ # • "$ # $ • #-.15 • 6&+!$ # • $ • "$# # • $,')%2/

Slide 11

Slide 11 text

What is Cloud Native? CNCF and Cloud Native Cloud Native Ecosystem

Slide 12

Slide 12 text

CNCF and The Linux Foundation • KubernetesThe Linux Foundation CNCF •

Slide 13

Slide 13 text

Cloud Native page 013 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)

Slide 14

Slide 14 text

Cloud Native8 page 014 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#,

Slide 15

Slide 15 text

Kubernetes is key product for Cloud Native Computing Cloud Native Ecosystem

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

What is doing Kubernetes? Declarative Code & APIs Self-Healing Rolling Update – Automation & Immutable Infrastructure ReplicaSet Service – “type: LoadBalancer”

Slide 18

Slide 18 text

page 018 • Pod =

Slide 19

Slide 19 text

Kubernetes page 019 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

Slide 20

Slide 20 text

Declarative Code and APIs page 020 Developer Register YAML Manifest Kubernetes Cluster Manifests API Infrastructure as Code $ kubectl apply –f manifest.yaml

Slide 21

Slide 21 text

ReplicaSet

Slide 22

Slide 22 text

Load Balancer

Slide 23

Slide 23 text

ReplicaSet Self-Healing page 023 • ReplicaSet Replica • = Node Node

Slide 24

Slide 24 text

ReplicaSet Rolling Update (Automation) page 024 • # • • Immutable Infrastructure • " Load Balancer DeveloperYAML!

Slide 25

Slide 25 text

ReplicaSet Rolling Update (Automation) page 025 • • • Immutable Infrastructure • Load Balancer

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

ReplicaSet Rolling Update (Automation) page 027 • • • Immutable Infrastructure • Load Balancer

Slide 28

Slide 28 text

Keypoints page 028 • KubernetesGoogle=/A3. + #(&$,'Borg%,OSS1 → ;*,),"25<>1 ?01846 • 7@1 $!*,9-YAML: → Infrastructure EngineerBOpsC. Server-side Engineer BDevC.

Slide 29

Slide 29 text

Other topics Microservices and Service Mesh Kubernetes also like framework and more extensible Serverless and ML Ops

Slide 30

Slide 30 text

Microservice Architecture page 030 ProductPage Reviews Details Ratings HTTP/gRPC HTTP/gRPC HTTP/gRPC

Slide 31

Slide 31 text

page 031 500+ microservices The Case of Chaos, Bruce Wong, 2014-12-19, (https://www.slideshare.net/BruceWong3/the-case-for-chaos) The History of the Service Mesh, The New Stack, 2018-2-13, (https://thenewstack.io/history-service-mesh/)

Slide 32

Slide 32 text

Service Mesh Architecture (generally) page 032 • Microservice • Microservice with Service Mesh (for Observability)

Slide 33

Slide 33 text

Service Mesh • Microservice • Traffic Shifting (ex, Canary release) • Circuit Break • Fault Injection • Rate Limit • Retry • mTLS Example of Canary Release

Slide 34

Slide 34 text

Kubernetes also like framework Developer Register YAML Manifest Create Managed Service Instances Create Sharded MySQL Cluster on the Kubernetes Cluster as Container

Slide 35

Slide 35 text

Kubernetes is more extensible page 035 C A D C DBC B DA C A C A A F A D2 F C C BB & A BB C A C A C DBC A & A C 2 A CB A A A & B A AD B &B C D C C DC C C 2 Kubernetes Boring Kubernetes

Slide 36

Slide 36 text

Kubernetes is more extensible page 036 B C B CAB A C 2 B B AA & AA 2F B B B D CAB & D 2 B 2BA D 2 & A C A2 &A B C B B 2F CB B B

Slide 37

Slide 37 text

Future of Kubernetes Kubernetes is becoming de-facto standard in the future?

Slide 38

Slide 38 text

page 038 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/)

Slide 39

Slide 39 text

Google Kubernetes Engine Managed Kubernetes Serivce Azure Kubernetes Service 2014-11 2017-02 2017-11 Amazon Elastic Container Service for Kubernetes

Slide 40

Slide 40 text

page 040 CNCFStandardization 01. " (!) OCI v1.0 02. # CRI 03. # CSI 04. # CNI

Slide 41

Slide 41 text

page 041 Kubernetes for Enterprise • Monzo Bank • Kubernetes + Linkerd (Service Mesh) Ref: https://monzo.com/blog/2016/09/19/building-a-modern-bank-backend/

Slide 42

Slide 42 text

CNCF Community Presentation, CNCF, 2018 (https://github.com/cncf/presentations)

Slide 43

Slide 43 text

Kubernetes

Slide 44

Slide 44 text

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

Slide 45

Slide 45 text

Thank you for your attention follow me: @amsy810