Slide 1

Slide 1 text

Rancher & Kubernetes ~ Multi-cloud to Multi Kubernetes & CloudNative to KubernetesNative ~ AP Communications Co., Ltd. Educational Solution Architect/Developer Advocate/Technical Evangelist Rancher Day Tokyo 2019 Yutaka Ichikawa

Slide 2

Slide 2 text

Profile Name︓Yutaka Ichikawa Company︓AP Communications Co., Ltd. Belong︓Technology Development DepartmentContainer Group Position︓Educational Solution Architect/Developer Advocate/Technical Evangelist Publication ISBN-10: 4798155373 ISBN-13: 978-4798155371 As an infrastructure engineer and frontend engineer, he is in charge of server design and construction, operation and maintenance, and Web system development centering on the infrastructure of the government office. He teaches OSS (Linux, Docker, k8s, Rancher, etc.) as a part-time lecturer at a vocational school, works as an advocate / evangerist, attends meetups and conference such as the RancherJP community, and works as a hands-on lecturer. #rancherjp #kujiraya #deepcn 2 I wrote the Chapter 6 Rancher 2.0 part. Release on March 15, 2018

Slide 3

Slide 3 text

Profile http://bit.ly/thinkit_rancher

Slide 4

Slide 4 text

Profile 2019/7/23 Release 4

Slide 5

Slide 5 text

AP Communications Co., Ltd Let’s Start CloudNative !! 5 AP Communications has signed a Consulting Partner with RancherLabs.

Slide 6

Slide 6 text

1. What’s Rancher 2. Rancher on Kubernetes 3. Kubernetes Cluster Create & Import 4. Kubernetes Cluster Manage 5. Rancher 2.3 Alpha5 6. Rancher In The Future Agenda

Slide 7

Slide 7 text

WHAT’S RANCHER

Slide 8

Slide 8 text

What’s Rancher ? • Kubernetes management platform for building and operating Kubernetes cluster, importing existing Kubernetes cluster, regardless of cloud or on-premise and multi-cloud or hybrid-cloud • Application management with helm-based catalog function • Kubernetes management linked with OSS such as GitLab, Prometheus, Fluentd • Development is Rancher Labs(http://rancher.com/) • Open source software (with paid version with support)

Slide 9

Slide 9 text

What’s Rancher ? THE FORRESTER NEW WAVE Enterprise Container Platform Software Suites Q4 2018 出典「The Forrester New Wave?: Enterprise Container Platform Software Suites, Q4 2018 The Eight Providers That Matter Most And How They Stack Up」(https://bit.ly/theforresternewwave)

Slide 10

Slide 10 text

What’s Rancher VirtualMachine BareMetal Summary of Kubernetes Kubernetes Container 10

Slide 11

Slide 11 text

Multi-Cloud to Multi-Kubernetes What’s Rancher 11

Slide 12

Slide 12 text

What’s Rancher Kubernetes Clusters Create Import EKS GKE AKS vSphere Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage “Kubernetes Everywhere”

Slide 13

Slide 13 text

What’s Rancher Kubernetes is becoming the Linux of the cloud by Jim Zemlin (The Linux Foundation)

Slide 14

Slide 14 text

What’s Rancher Multi-Cloud to Multi-Kubernetes Cloud Native to Kubernetes Native

Slide 15

Slide 15 text

What’s Rancher Platform for Platform X as a Service foundation Database , Serverless , ML … as a Service on Kubernetes

Slide 16

Slide 16 text

What’s Rancher

Slide 17

Slide 17 text

What’s Rancher Kubernetes Clusters Create Import EKS GKE AKS vSphere Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage Kubernetes is becoming the Linux of the cloud by Jim Zemlin (The Linux Foundation) Multi Cloud to Multi Kubernetes CloudNtive to KubernetesNative

Slide 18

Slide 18 text

What’s Rancher Kubernetes Clusters Create Import EKS GKE AKS vSphere Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage Kubernetes is becoming the Linux of the cloud by Jim Zemlin (The Linux Foundation) Multi Cloud to Multi Kubernetes CloudNtive to KubernetesNative Introducing Anthos: An entirely new platform for managing applications in today's multi-cloud world by Google Cloud Blog 2019.4.10 A platform for hybrid-cloud and multi-cloud that enables containerized applications to run anywhere on premises and in the cloud.

Slide 19

Slide 19 text

What’s Rancher Kubernetes Clusters Create Import EKS GKE AKS vSphere Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage Kubernetes is becoming the Linux of the cloud by Jim Zemlin (The Linux Foundation) Multi Cloud to Multi Kubernetes CloudNtive to KubernetesNative This is super exciting news for Rancher. In Google Anthos, we see great alignment with Rancher’s vision. We believe Kubernetes will become the standardized infrastructure provided by all public and private clouds, and an enterprise Kubernetes platform must deliver multi-cluster, multi-cloud management. http://bit.ly/rancher_blog_anthos

Slide 20

Slide 20 text

KubeCon CloudNativeCon Europe 2019

Slide 21

Slide 21 text

In 2017, Spotify planned the migration of hundreds of teams, thousands of services, and tens of thousands of hosts to Google Kubernetes Engine (GKE). In the last half of 2018, Spotify migrated 50 teams and hundreds of services, including critical ones, onto multiple production clusters. http://bit.ly/publickey-spotify

Slide 22

Slide 22 text

This talk aims to highlight Condé Nast International's journey to deliver a multi-cluster distributed Kubernetes platform, with a centralized management mechanism and self-service CI/CD process.

Slide 23

Slide 23 text

What’s Rancher One Click Deployment ! ! Creating Private Catalogs ! ! You can deploy the application simply by selecting from the catalog list and clicking the launch button. You can also register catalogs created by individuals.

Slide 24

Slide 24 text

What’s Rancher Major developer catalogs

Slide 25

Slide 25 text

What’s Rancher • Advanced Monitoring Main outline • Multi-Cluster Apps • Latest - v2.2.4 – rancher/rancher:latest • Stable – v2.2.4 - rancher/rancher:stable Version (2019/7) https://github.com/rancher/rancher/releases/tag/v2.2.0 Release Note Webinar http://bit.ly/rancher_webinar_22 Monitoring of clusters, projects and k8s components is now supported through integration with Prometheus. By augmenting the functionality of Helm with Rancher's multi-cluster management capabilities, users are now able to seamlessly manage their applications across clusters.

Slide 26

Slide 26 text

Advanced Monitoring Click ”Enable Monitoring” Button 26

Slide 27

Slide 27 text

Advanced Monitoring Make sure the graph redesign and the Grafana icon appear. 27

Slide 28

Slide 28 text

Advanced Monitoring You can check the detailed information by clicking the graph. 28 Expand accordion menu

Slide 29

Slide 29 text

Advanced Monitoring Click on the Grafana icon to see in the Grafana Dashboard 29

Slide 30

Slide 30 text

December 2018 Online Meetup Introducing Rancher's New Multi Tenant Prometheus Support Webinar http://bit.ly/rancher_webinar_prometheus Advanced Monitoring

Slide 31

Slide 31 text

Multi-Cluster Apps Deploy and deploy apps to multiple Kubernetes clusters, and launch "Rancher 2.2" with new features such as rolling updates by Publickey 2019.2.15 https://rancher.com/blog/ http://bit.ly/publickey_rancher

Slide 32

Slide 32 text

Multi-Cluster Apps A new feature of Rancher 2.2 is the ability to deploy applications from the catalog in bulk to Multi Kubernetes Cluster.

Slide 33

Slide 33 text

Multi-Cluster Apps In conjunction with Rancher, run Multi-Cluster Apps from the place where I built a cluster on AKS, EKS, GKE.

Slide 34

Slide 34 text

Multi-Cluster Apps 1.Select the upper menu “Multi-Cluster Apps” and press the “Launch” button.

Slide 35

Slide 35 text

Multi-Cluster Apps 2.Enter “word” in the search field and press the “View Details” button on “wordpress”

Slide 36

Slide 36 text

By selecting the namespace for the kubernetes cluster to deploy You can deploy to multi- kubernetes cluster. Multi-Cluster Apps 3.Set 1 to 3 1.Enter any name 2. Press "Add Target" button twice 3. Select Default for "aks-kubernetes- cluster", "eks-kubernetes-cluster", and "gke-kubernetes-cluster"

Slide 37

Slide 37 text

4.Set 4.1 to 4 and press the “Launch” button 1.Enter any password 3.Select「False」 2.Enter any password 4.Select「L4 Balancer」 Multi-Cluster Apps

Slide 38

Slide 38 text

Multi-Cluster Apps 5.Completed wordpress deployment on aks-kubernetes-cluster, eks-kubernetes-cluster, gke-kubernetes- cluster

Slide 39

Slide 39 text

Multi-Cluster Apps 6. Access WordPress by clicking 443/tcp, 80/tcp in Service of AKS, EKS, GKE

Slide 40

Slide 40 text

February 2019 Online Meetup Multi Cluster Applications, Global DNS, and Multi Tenant Catalogs Webinar Multi-Cluster Apps http://bit.ly/rancher_webinar_m-capps

Slide 41

Slide 41 text

RANCHER ON KUBERNETES

Slide 42

Slide 42 text

Rancher High Availability & Single Node Installation 1.High Availability Installation L4 Load Balancer (TCP) High Availability Installation installs Rancher on your Kubernetes cluster. Establish high availability with the features of Kubernetes. Recommended for production environments that operate 24/365. • DNS for Rancher should resolve to a Layer 4 load balancer (TCP) • The Load Balancer should forward port TCP/80 and TCP/443 to all 3 nodes in the Kubernetes cluster. • The Ingress controller will redirect HTTP to HTTPS and terminate SSL/TLS on port TCP/443. • The Ingress controller will forward traffic to port TCP/80 on the pod in the Rancher deployment.

Slide 43

Slide 43 text

Rancher High Availability & Single Node Installation 2.Single Node Installation Step 2: Rancher Serverスタート $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher Web Access!! https:/// Step 1: Linuxホストの準備 OS Hardware Docker Ubuntu 16.04 (64-bit) Small: vCPUs 1 MEM 4GB Up to 5(Clusters) Medium: vCPUs 2 MEM 8GB Up to 10(Clusters) 17.03.x, 18.06.x, 18.09.x Ubuntu 18.04 (64-bit) 18.06.x, 18.09.x Red Hat Enterprise Linux (RHEL)/CentOS 7.6 (64-bit) RHEL Docker 1.13 17.03.x, 18.06.x, 18.09.x RancherOS 1.5.1 (64-bit) 17.03.x, 18.06.x, 18.09.x Windows Server 2019(64bit) 18.09 Single Node Installation installs Rancher on a single Linux host. It is recommended for development and test environments as it is very easy to set up.

Slide 44

Slide 44 text

KUBERNETES CLUSTER CREATE & IMPORT

Slide 45

Slide 45 text

Kubernetes Cluster Create & Import 1.About Add Cluster Select when linking with GKE, EKS, AKS Select when linking with Cloud Provider such as EC2, Azure, DigitalOcean, vSpher, etc. Select when linking with an existing Kubernetes Cluster Select when creating a Kubernetes cluster on premises or in a virtual machine.

Slide 46

Slide 46 text

Kubernetes Cluster Create & Import 2.Managed Kubernetes GKE EKS AKS

Slide 47

Slide 47 text

Kubernetes Cluster Create & Import 3.Cloud Provider EC2 Azure DagitalOcean vSphere(Default)

Slide 48

Slide 48 text

Kubernetes Cluster Create & Import 4.Custom Execute generated command on On-premises or VM instance.

Slide 49

Slide 49 text

Kubernetes Cluster Create & Import 5.Import Execute generated command on existing Kubernetes cluster.

Slide 50

Slide 50 text

KUBERNETES CLUSTER MANAGE

Slide 51

Slide 51 text

Rancher’s Navigation Menu Global Navigation Clusters Apps Users Settings Security Tools Roles Pod Security Policies Authcation Catalogs Drivers Cluster Navigation Cluster Nodes Storage Projects/Namespaces Member Tools Persistent Volumes Strage Classes Alerts Snapshots Catalogs Notifers Logging Monitoring Project Navigation Workloads Apps Resources Namespace Member Tools Workloads Load Balancing Service Discovery Volumes Piplines Certificates Config Maps Registries Secrets Alerts Catalogs Logging Monitoring Pipeline

Slide 52

Slide 52 text

Rancher Basic Monitoring 1.Cluster

Slide 53

Slide 53 text

Rancher Basic Monitoring 2.Nodes

Slide 54

Slide 54 text

3.Notifers Alert notification destination Rancher Basic Monitoring

Slide 55

Slide 55 text

Rancher Basic Monitoring 4.Alerts Default Setting etcd kube components event node a.Cluster Alert Default

Slide 56

Slide 56 text

Rancher Basic Monitoring Default Setting Workload Memory ※You need to enable Promethus features. b.Project Alert Default

Slide 57

Slide 57 text

Rancher Basic Logging Rancher Linkage Elasticsearch splunk Kafka syslog Fluentd

Slide 58

Slide 58 text

Rancher Basic DevOps Rancher Linkage GitHub GitLab Bitbucket

Slide 59

Slide 59 text

Rancher Catalog 1.From Helm 2.From Library 278 Catalogs (v2.2.4 default / 2019.6) 31 Catalogs (v2.2.4 default / 2019.6) In the catalog list, “(from Helm)” is displayed as the official chart of Helm. In the catalog list, "(From Library)" is displayed by Chart customized by Rancher Labs

Slide 60

Slide 60 text

Rancher CLI Command Result apps, [app] Performs operations on catalog applications (i.e. individual Helm charts or Rancher charts). catalog Performs operations on catalogs. clusters, [cluster] Performs operations on your clusters. context Switches between Rancher projects. For an example, see Project Selection. inspect [OPTIONS] [RESOURCEID RESOURCENAME] Displays details about Kubernetes resources or Rancher resources (i.e.: projects and workloads). Specify resources by name or ID. kubectl Runs kubectl commands. login, [l] Logs into a Rancher Server. For an example, see CLI Authentication. namespaces, [namespace] Performs operations on namespaces. nodes, [node] Performs operations on nodes. projects, [project] Performs operations on projects. ps Displays workloads in a project. settings, [setting] Shows the current settings for your Rancher Server. ssh Connects to one of your cluster nodes using the SSH protocol. help, [h] Shows a list of commands or help for one command. Commands The following commands are available for use in Rancher CLI.

Slide 61

Slide 61 text

RANCHER 2.3 ALPHA5

Slide 62

Slide 62 text

Rancher 2.3 Alpha5 Rancher 2.3 has enhanced Service Mesh and Observability http://bit.ly/rancher_alpha5

Slide 63

Slide 63 text

Rancher 2.3 Alpha5 What’s Service Mesh ?

Slide 64

Slide 64 text

Rancher 2.3 Alpha5 A network where microservices communicate with each other

Slide 65

Slide 65 text

Rancher 2.3 Alpha5 What’s Microservice ?

Slide 66

Slide 66 text

Rancher 2.3 Alpha5 Monoliths & Microservice

Slide 67

Slide 67 text

Server Rancher 2.3 Alpha5 Application Scale out Make multiple functions (services) into one Application (execution body) Replicate and scale the entire Application to multiple Servers Application Monoliths Server Application Server Application

Slide 68

Slide 68 text

Rancher 2.3 Alpha5 Microservice Server スケールアウト Run individual functions (services) in separate processes Deploy and scale each function (service) on Server Server Server Server Scale out

Slide 69

Slide 69 text

Rancher 2.3 Alpha5 What’s Service Mesh A network where microservices communicate with each other

Slide 70

Slide 70 text

Rancher 2.3 Alpha5 A network where these services communicate with each other, a service mesh Server Server Server Server

Slide 71

Slide 71 text

Rancher 2.3 Alpha5 There is no problem if it is a few services, but with hundreds, thousands, tens of thousands, hundreds of millions of service mesh ....

Slide 72

Slide 72 text

Rancher 2.3 Alpha5 Istio Complex service mesh, OSS for secure management of microservices

Slide 73

Slide 73 text

Rancher 2.3 Alpha5 Istio Component Component Description Envoy Proxy server that manages all traffic in / out of service mesh. Deployed as a sidecar of Pod at Kubernetes. Mixer A component that collects data of each service through Envoy and performs access control based on that information. Pilot In charge of service discovery and traffic management. Citadel Manage user authentication and TLS mutual authentication between services.

Slide 74

Slide 74 text

Rancher 2.3 Alpha5 Kiali An OSS that visualizes the microservice status of Istio's service mesh

Slide 75

Slide 75 text

Rancher 2.3 Alpha5 Jaeger Distributed tracing and monitoring OSS of OpenTracing specification developed by Uber

Slide 76

Slide 76 text

Rancher 2.3 Alpha5 Prometheus + Grafana Prometheus and Grafana for Istio separate from resource monitoring

Slide 77

Slide 77 text

Rancher 2.3 Alpha5

Slide 78

Slide 78 text

Rancher 2.3 Alpha5 "Bookinfo" service mesh, microservice architecture sample application

Slide 79

Slide 79 text

Rancher 2.3 Alpha5 1.Select the upper menu "Global"-"gke-cluster" 2.Select the upper menu "Tools"-"Istio"

Slide 80

Slide 80 text

Rancher 2.3 Alpha5 3. Click the "Enable" button

Slide 81

Slide 81 text

Rancher 2.3 Alpha5 4.Upper menu "Global"-"gke-cluster"-"Default" is selected 5.Select the upper menu "Istio"

Slide 82

Slide 82 text

Rancher 2.3 Alpha5 6.Access the Bookinfo application in a browser Traffic Graph

Slide 83

Slide 83 text

Rancher 2.3 Alpha5 Traffic Metrics

Slide 84

Slide 84 text

Rancher 2.3 Alpha5 7.Click each icon in the upper right to access each application in a separate window Istio Prometheus Grafana Jaeger

Slide 85

Slide 85 text

Rancher 2.3 Alpha5 Service Mesh & Observerbility https://rancher.com/blog/2019/announcing-istio-preview http://bit.ly/rancher23

Slide 86

Slide 86 text

RANCHER IN THE FUTURE

Slide 87

Slide 87 text

Kubernetes, Istio, Knative,Service Mesh like “docker run” Rio is a Kubernetes-based MicroPaaS https://rio.io/ At Rancher Labs, all of our products are focused on making Kubernetes simple to use for everybody. Even still, our teams were frustrated by how much effort is required to manage tools like Istio and Knative. We built Rio so developers could deploy, manage, scale, and version their applications with a single command.

Slide 88

Slide 88 text

Rancher In The Future Sponsored Session: The Journey to Kubernetes Everywhere - Shannon Williams, Rancher Labs Presentation Docs : http://bit.ly/k8sday_india_rancher Presentation Movie : http://bit.ly/k8sday_india_rancher_movie Phase1:Deliver a full-featured container management platfrom that integrates the cloud native technologies and ecosystem Phase2:Intorduce multi-cluster management and multi-cluster applications Phase3:Expand Kubernetes footprint everywhere(cloud,data center, and edge)

Slide 89

Slide 89 text

Lightweight Kubernetes Cross-Cluster Network Connectivity for Kubernetes Easy to install. A binary of less than 40 MB. Only 512 MB of RAM required to run.

Slide 90

Slide 90 text

Thank you for your attention !!