Slide 1

Slide 1 text

Rancher Meetup in Nagoya #01 2019.3.2 © 2019 cyberblack28 LET’S START CLOUD NATIVE WITH RANCHER !! “FEATURING RANCHER 2.2 & KUBEFLOW”

Slide 2

Slide 2 text

Profile Twitter:cyberblack28 Hatena Blog:https://cyberblack28.hatenablog.com/ Job Educational Solution Architect Developer Advocate / Technical Evangelist Infrastructure Engineer Frontend Engineer Community Music,Live,FES !! Take a picture !! https://www.flickr.com/photos/cyberblack ISBN-10: 4798155373 ISBN-13: 978-4798155371 I wrote the Chapter 6 Rancher 2.0 part. Release on March 15, 2018 ! #rancherjp #kujiraya #deepcn

Slide 3

Slide 3 text

Profile http://bit.ly/thinkit_rancher

Slide 4

Slide 4 text

AP Communications Co., Ltd We’re hireling !! Docker Kubernetes Rancher CloudNative

Slide 5

Slide 5 text

1. What’s Rancher 2. Rancher’s New Multi-Tenant Prometheus Support 3. Kubeflow Deploy from Catalog 4. Handson 5. Multi-Cluster Apps 6. Information Agenda

Slide 6

Slide 6 text

WHAT’S RANCHER

Slide 7

Slide 7 text

What’s Rancher ? • ,"0&.)80#@? =B:6 0#>5&,! %* • '!$" 0# >5&-+0 &/!.+0@ ? 17=B49 • 32Rancher Labshttp://rancher.com/ • &0%!(!< ;AC

Slide 8

Slide 8 text

Difference between Rancher 1.6 and 2.1 • *14docker-compose-7+,' !* • Network ipsec,vxlan# • Storage NFS,EBS# • Architecture Docker" • Java Go5MySQL60 • $( )%,# • Architecture kubernetes" • 100%Go5etcd60 • )%, 100% kubernetes • *14Helm-7+,'!* • Network flannel,canal,Calico9kubernetes!& ,:.-73/ • Storage kubernetes2084 :.-73/

Slide 9

Slide 9 text

Feature of Rancher2.1 Kubernetes Clusters Create Import Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage

Slide 10

Slide 10 text

Feature of Rancher2.1 Kubernetes Clusters Create Import Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage Kubernetes is becoming the Linux of the cloud by Jim Zemlin The Linux Foundation

Slide 11

Slide 11 text

Feature of Rancher2.1 Kubernetes Clusters Create Import 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 12

Slide 12 text

Feature of Rancher2.1 Kubernetes Clusters Create Import 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 13

Slide 13 text

Feature of Rancher2.1 One Click Deployment ! ! #-$,(%! ! Creating Private Catalogs ! ! )"'& +*

Slide 14

Slide 14 text

Feature of Rancher2.1 Major developer catalogs

Slide 15

Slide 15 text

Rancher v2.1.0 • Rancher1$ Cattle OrchestratorRancher2$ Kubernetes • Windows Kubernetes # Rancher 2.1 !Windows Node Kubernetes "http://ur0.link/PjA3 Main outline • Latest - v2.1.6 - rancher/rancher:latest • Stable - v2.1.6 - rancher/rancher:stable Version Rancher Release - v2.1.0 http://urx3.nu/MJA0 Details

Slide 16

Slide 16 text

Rancher 2.1 Technical Architecture Cluster Controller Auth Proxy Rancher Server RKE Nodes Kubectl Kubernetes API Rancher UI CLI API Rancher Component Other Kubernetes Master Legend Rancher API Server etcd Cluster Agent 1 Cluster Agent 2 RKE Kubernetes Master GKE Nodes GKE Kubernetes Master Kubelet Kubelet a x v x tiy Rd l o b e N H r c b e Re d c Dk AKC e d r b n b I Hus oC Gg eP e d v v S h

Slide 17

Slide 17 text

Rancher 2.1 Technical Architecture https://www.slideshare.net/linecorp/lets-unbox-rancher-20-v200

Slide 18

Slide 18 text

Rancher Labs New Project “Rio” Kubernetes, Istio, Service Mesh like Docker Darren Shepherd Co-founder and Chief Architect at Rancher Labs, Inc. @ibuildthecloud https://github.com/rancher/rio https://www.slideshare.net/cyberblackvoom/whats-rio-112779732 Rio!!

Slide 19

Slide 19 text

Get started with Rancher 2.1 OS Hardware Software Ubuntu 16.04 (64-bit) Memory: 4GB • 1.12.6 • 1.13.1 • 17.03.X Red Hat Enterprise Linux 7.5 (64-bit) RancherOS 1.3.0 (64-bit) Step 2: Start the server $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher Web Access!! https:// Step 1: Prepare a Linux Host

Slide 20

Slide 20 text

RANCHER’S NEW MLUTI-TENANT PROMETHEUS SUPPORT

Slide 21

Slide 21 text

PrometheusGrafana Deploy from Catalog function Rancher’s New Multi-Tenant Prometheus Support

Slide 22

Slide 22 text

http://ur0.link/PjFf Rancher Official Blog Rancher’s New Multi-Tenant Prometheus Support

Slide 23

Slide 23 text

Rancher 2.2 simplifies and cuts this process down to just 2 steps Rancher’s New Multi-Tenant Prometheus Support

Slide 24

Slide 24 text

Rancher Official Blog http://ur0.link/PjHe Rancher’s New Multi-Tenant Prometheus Support

Slide 25

Slide 25 text

Rancher’s New Multi-Tenant Prometheus Support http://ur0.link/PjJn • December 2018 Online Meetup Introducing Rancher's New Multi Tenant Prometheus Support Webinar • Rancher v2.2.0-Alpha3 Multi-Tenant Prometheus Support Docs http://ur0.link/PjK6

Slide 26

Slide 26 text

KUBEFLOW DEPLOY FROM CATALOG

Slide 27

Slide 27 text

Kubeflow Deploy from Catalog Kubernetes https://github.com/kubeflow/kubeflow

Slide 28

Slide 28 text

Kubeflow Deploy from Catalog . !

Slide 29

Slide 29 text

Kubeflow Deploy from Catalog https://speakerdeck.com/nakayamam/ranchertekubeflowgou-zhu

Slide 30

Slide 30 text

HANDSON

Slide 31

Slide 31 text

1.Rancher Server Set up Handson 2.GKE Kubernetes Cluster Set up 3.GKE Kubernetes Cluster Import 4.Prometheus Set up 5.Kubeflow Deploy from Catalog

Slide 32

Slide 32 text

1.Rancher Server Set up 1.Instance 2.Docker $ curl https://releases.rancher.com/install-docker/18.09.sh | sh 3.Rancher v2.2.0-alpha6 Server $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:v2.2.0-alpha6 Rancher Server Set up -+ rancher-server %#' asia-northeast1(, ' asia-northeast1-b "'! vCPUx1 Ubuntu 16.04 LTS 80GB & HTTP$0/ HTTPS$0/ .*) 4. RancherUI https://EXTERNAL-IP/

Slide 33

Slide 33 text

5. Rancher Server Set up

Slide 34

Slide 34 text

Rancher Server Set up 6.Helm Catalogs Enable Global

Slide 35

Slide 35 text

2.GKE Kubernetes Cluster Set up GKE Kubernetes Cluster Set up 1.GPU C P 3 124.- 34 K G K 5 -2 -4-3 C 6 P

Slide 36

Slide 36 text

GKE Kubernetes Cluster Set up 2.

Slide 37

Slide 37 text

GKE Kubernetes Cluster Import 1.Add Cluster 3.GKE Kubernetes Cluster Import

Slide 38

Slide 38 text

GKE Kubernetes Cluster Import 2.1~2 Create GKE,EKS,AKS I EC2,Azure,DigitalOcean,v Spher Cloud Provider I .Kubernetes Cluster I 1 . VM 2 I I

Slide 39

Slide 39 text

GKE Kubernetes Cluster Import 3.1~2 Cloud ShellDone C AG . E 21 C AG 21

Slide 40

Slide 40 text

GKE Kubernetes Cluster Import 4. 5.Cloud Shell

Slide 41

Slide 41 text

GKE Kubernetes Cluster Import $ gcloud container clusters get-credentials gpu-cluster-1 --zone asia-northeast1-b --project natural-nimbus-xxxxxx Fetching cluster endpoint and auth data. kubeconfig entry generated for gpu-cluster-1. $ kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user [USER_ACCOUNT] clusterrolebinding.rbac.authorization.k8s.io "cluster-admin-binding" created $ curl --insecure -sfL https://34.85.14.246/v3/import/9w25rk9xvdhwdx94q8mknwlkrqfmxjwc22zs5x2lvrvh56kjpsngzm.yaml | kubectl apply -f - namespace "cattle-system" created serviceaccount "cattle" created clusterrolebinding.rbac.authorization.k8s.io "cattle-admin-binding" created secret "cattle-credentials-46a5b45" created clusterrole.rbac.authorization.k8s.io "cattle-admin" created deployment.extensions "cattle-cluster-agent" created daemonset.extensions "cattle-node-agent" created

Slide 42

Slide 42 text

GKE Kubernetes Cluster Import 6.

Slide 43

Slide 43 text

GKE Kubernetes Cluster Import 7.

Slide 44

Slide 44 text

Prometheus Set up 1. Tools-Monitoring 4.Prometheus Set up

Slide 45

Slide 45 text

Prometheus Set up 2.Enabled Save

Slide 46

Slide 46 text

Prometheus Set up 3. gke-kubernetes-cluste-Global

Slide 47

Slide 47 text

Prometheus Set up 4.

Slide 48

Slide 48 text

Prometheus Set up 5. Grafana

Slide 49

Slide 49 text

Prometheus Set up 6.

Slide 50

Slide 50 text

Prometheus Set up 7.Grafana Grafana

Slide 51

Slide 51 text

Prometheus Set up Nodes Cluster 8.Launch kubectl

Slide 52

Slide 52 text

Prometheus Set up 9.kubectl get pods --all-namespaces # Run kubectl commands inside here # e.g. kubectl get all > kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE cattle-prometheus exporter-kube-state-cluster-monitoring-74cb684fd9-r5jhq 1/1 Running 0 10m cattle-prometheus exporter-node-cluster-monitoring-6cmn6 1/1 Running 0 10m cattle-prometheus exporter-node-cluster-monitoring-lgqgl 1/1 Running 0 10m cattle-prometheus exporter-node-cluster-monitoring-z8cwp 1/1 Running 0 10m cattle-prometheus exporter-node-cluster-monitoring-zqdt2 1/1 Running 0 10m cattle-prometheus grafana-cluster-monitoring-5679bdc798-zknh9 3/3 Running 0 10m cattle-prometheus prometheus-cluster-monitoring-0 4/4 Running 1 9m cattle-prometheus prometheus-cluster-monitoring-nginx-5c56f6bd9d-8g9g2 1/1 Running 2 10m cattle-prometheus prometheus-operator-system-monitor-5d55fd76c-m65mf 1/1 Running 0 10m cattle-system cattle-cluster-agent-7ff7cdcb6-n9sv9 1/1 Running 0 26m cattle-system cattle-node-agent-c5mbj 1/1 Running 0 26m cattle-system cattle-node-agent-h26h7 1/1 Running 0 26m cattle-system cattle-node-agent-qtzmv 1/1 Running 0 25m cattle-system cattle-node-agent-v5mhn 1/1 Running 0 26m kube-system event-exporter-v0.2.3-85644fcdf-r7jg2 2/2 Running 0 1h kube-system fluentd-gcp-scaler-8b674f786-dpz96 1/1 Running 0 1h kube-system fluentd-gcp-v3.2.0-rfhj7 2/2 Running 0 1h kube-system fluentd-gcp-v3.2.0-vdmmx 2/2 Running 0 1h kube-system fluentd-gcp-v3.2.0-wgbvf 2/2 Running 0 1h kube-system fluentd-gcp-v3.2.0-zv2gc 2/2 Running 0 1h kube-system heapster-v1.6.0-beta.1-5c7b8669b7-f2wsm 3/3 Running 0 1h kube-system kube-dns-548976df6c-54gxr 4/4 Running 0 1h kube-system kube-dns-548976df6c-m66vt 4/4 Running 0 1h kube-system kube-dns-autoscaler-67c97c87fb-9dv59 1/1 Running 0 1h kube-system kube-proxy-gke-gpu-cluster-1-gpu-pool-1-25849856-fv9j 1/1 Running 0 1h kube-system kube-proxy-gke-gpu-cluster-1-micro-pool-1-774a2751-0z6p 1/1 Running 0 1h kube-system kube-proxy-gke-gpu-cluster-1-micro-pool-1-774a2751-3vc9 1/1 Running 0 1h kube-system kube-proxy-gke-gpu-cluster-1-micro-pool-1-774a2751-k1rx 1/1 Running 0 1h kube-system l7-default-backend-7ff48cffd7-5kznt 1/1 Running 0 1h kube-system metrics-server-v0.2.1-fd596d746-45nc5 2/2 Running 0 1h >

Slide 53

Slide 53 text

Kubeflow Deploy from Catalog 1. gke-kubernetes-cluster-Default 5.Kubeflow Deploy from Catalog

Slide 54

Slide 54 text

Kubeflow Deploy from Catalog 2. Catalog AppsLaunch

Slide 55

Slide 55 text

Kubeflow Deploy from Catalog 3. kubeflowView Details

Slide 56

Slide 56 text

Kubeflow Deploy from Catalog 4. Launch

Slide 57

Slide 57 text

Kubeflow Deploy from Catalog 5. /tcp

Slide 58

Slide 58 text

Kubeflow Deploy from Catalog Workloads Services

Slide 59

Slide 59 text

Kubeflow Deploy from Catalog 6.Kubeflow JUPTERHUB

Slide 60

Slide 60 text

Kubeflow Deploy from Catalog 7.Username,Password Sign In

Slide 61

Slide 61 text

Kubeflow Deploy from Catalog 8. gcr.io/kubeflow-images-public/tensorflow-1.10.1-notebook-cpu:v0.3.1 Spawn

Slide 62

Slide 62 text

Kubeflow Deploy from Catalog 9.New-Python3

Slide 63

Slide 63 text

Kubeflow Deploy from Catalog 10.TensorFlow

Slide 64

Slide 64 text

Kubeflow Deploy from Catalog 11.KUBEFLOW DOCSTFJOB DASHBOARD

Slide 65

Slide 65 text

MULTI-CLUSTER APPS

Slide 66

Slide 66 text

Multi-Cluster Apps %"Kubernetes !#'& Rancher 2.2$ by Publickey 2019.2.15 https://rancher.com/blog/ https://www.publickey1.jp/blog/19/kubernetesrancher_22.html

Slide 67

Slide 67 text

Multi-Cluster Apps http://urx3.nu/RYwU • February 2019 Online Meetup: Multi Cluster Applications, Global DNS, and Multi Tenant Catalogs Webinar • Rancher 2.2 Tech Preview Multi-Cluster App Docs http://urx3.nu/UYcM

Slide 68

Slide 68 text

Multi-Cluster Apps Rancher2.2!"$ Multi Kubernetes Cluster & "$%#

Slide 69

Slide 69 text

Rancher AKS,EKS,GKE Multi-Cluster Apps Multi-Cluster Apps

Slide 70

Slide 70 text

1. Multi-Cluster Apps Launch Multi-Cluster Apps

Slide 71

Slide 71 text

2. wordwordpress View Details Multi-Cluster Apps

Slide 72

Slide 72 text

3.1~3 T 2., 3 ,21, ,3 3 ,2 , 3 ,21, ,3 3 ,2 . , ,21, ,3 3 ,2 ,- D kubernetes kubernetes D A Multi-Cluster Apps

Slide 73

Slide 73 text

4.1~4 Launch 42 .31 1 42 .31 1 Multi-Cluster Apps

Slide 74

Slide 74 text

5.aks-kubernetes-cluster,eks-kubernetes-cluster,gke-kubernetes-clusterwordpress Multi-Cluster Apps

Slide 75

Slide 75 text

6.AKS,EKS,GKEService443/tcp,80/tcpWordPress Multi-Cluster Apps

Slide 76

Slide 76 text

7.https or http://ExternalIP/wp-login.php (Username:user Password:your set password) Multi-Cluster Apps

Slide 77

Slide 77 text

INFORMATION

Slide 78

Slide 78 text

Information Rancher2.0 Kubernetes Workshop in Osaka #02 2019/3/16 (sat) 10:0012:30 Spacee 2-8-15 2 B Rancher Meetup in Osaka #07 2019/3/16 (sat) 13:3014:45 Spacee 2-8-15 2 B

Slide 79

Slide 79 text

Information Rancher Meetup Tokyo #18 ( &) 2019/3/19 (tue) 19:0021:00 "$ (#%1-6-1 8) !'

Slide 80

Slide 80 text

Information Cloud Native Kansai #02 2019/3/15 (fri) 19:0021:30 - 5- 1 2 -

Slide 81

Slide 81 text

Information Cloud Native Hiroshima #02 2019/3/8 (fri) 18:0020:00 5 52 1 3 (- ) 3

Slide 82

Slide 82 text

Docker / Kubernetes / Rancher One Day Training 2019.4.15 https://eventregist.com/e/cndf2019training 10:0010:20(20min)[AS )6.0"? X:8>E 10:2012:00(60min)NMLW 12:0013:00(60min)ZV] ,-/$-3KPR@"

Slide 83

Slide 83 text

KubeCon + CloudNativeCon China 2018 Recap http://u0u0.net/PGHs 8 2 8 1 01 ! 2 Rancher Yes !!

Slide 84

Slide 84 text

KubeCon + CloudNativeCon NA 2018 Recap http://ur0.link/PkTG http://ur0.link/PkUm

Slide 85

Slide 85 text

! !