Let's start Cloud Native with Rancher !! "Featuring Rancher 2.2 Tech Preview & Kubeflow"

7bcf6f29a0b9a348fe422a31a4f44752?s=47 cyberblack28
March 02, 2019
310

Let's start Cloud Native with Rancher !! "Featuring Rancher 2.2 Tech Preview & Kubeflow"

Rancher Meetup in Nagoya #01

7bcf6f29a0b9a348fe422a31a4f44752?s=128

cyberblack28

March 02, 2019
Tweet

Transcript

  1. Rancher Meetup in Nagoya #01 2019.3.2 © 2019 cyberblack28 LET’S

    START CLOUD NATIVE WITH RANCHER !! “FEATURING RANCHER 2.2 & KUBEFLOW”
  2. 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
  3. Profile http://bit.ly/thinkit_rancher

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

    CloudNative
  5. 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
  6. WHAT’S RANCHER

  7. What’s Rancher ? • ,"0&.)80#@? =B:6 0#>5&,! %* • '!$"

    0# >5&-+0 &/!.+0@ ? 17=B49 • 32 Rancher Labshttp://rancher.com/ • &0%!(!< ;AC 
  8. 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/
  9. Feature of Rancher2.1 Kubernetes Clusters Create Import   

      Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage
  10. 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
  11. 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
  12. 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
  13. Feature of Rancher2.1 One Click Deployment ! !  #-$,

    (%!  !    Creating Private Catalogs ! ! )" '&  +*  
  14. Feature of Rancher2.1 Major developer catalogs

  15. Rancher v2.1.0 • Rancher1$ Cattle Orchestrator Rancher2$ 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
  16. 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
  17. Rancher 2.1 Technical Architecture https://www.slideshare.net/linecorp/lets-unbox-rancher-20-v200

  18. 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!!
  19. 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://<server_ip> Step 1: Prepare a Linux Host
  20. RANCHER’S NEW MLUTI-TENANT PROMETHEUS SUPPORT

  21.    PrometheusGrafana   Deploy from Catalog function

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

  23. Rancher 2.2 simplifies and cuts this process down to just

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

  25. 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
  26. KUBEFLOW DEPLOY FROM CATALOG

  27. Kubeflow Deploy from Catalog Kubernetes     

    https://github.com/kubeflow/kubeflow
  28. Kubeflow Deploy from Catalog . !

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

  30. HANDSON

  31. 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
  32. 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/
  33. 5. Rancher Server Set up

  34. Rancher Server Set up 6.Helm Catalogs  Enable Global 

  35. 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
  36. GKE Kubernetes Cluster Set up 2.  

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

  38. 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
  39. GKE Kubernetes Cluster Import 3.1~2  Cloud ShellDone  C

    AG . E 21 C AG 21
  40. GKE Kubernetes Cluster Import 4.  5.Cloud Shell 

  41. 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   
  42. GKE Kubernetes Cluster Import 6.

  43. GKE Kubernetes Cluster Import 7. 

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

  45. Prometheus Set up 2.Enabled Save 

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

  47. Prometheus Set up 4.

  48. Prometheus Set up 5. Grafana    

  49. Prometheus Set up 6.      

    
  50. Prometheus Set up 7.Grafana   Grafana 

  51. Prometheus Set up Nodes Cluster 8.Launch kubectl

  52. 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 >
  53. Kubeflow Deploy from Catalog 1. gke-kubernetes-cluster-Default 5.Kubeflow Deploy from Catalog

  54. Kubeflow Deploy from Catalog 2. Catalog AppsLaunch  

  55. Kubeflow Deploy from Catalog 3.  kubeflowView Details  

  56. Kubeflow Deploy from Catalog 4.  Launch 

  57. Kubeflow Deploy from Catalog 5.   /tcp 

  58. Kubeflow Deploy from Catalog Workloads Services

  59. Kubeflow Deploy from Catalog 6.Kubeflow   JUPTERHUB 

  60. Kubeflow Deploy from Catalog 7.Username,Password Sign In 

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

  62. Kubeflow Deploy from Catalog 9.New-Python3

  63. Kubeflow Deploy from Catalog 10.TensorFlow   

  64. Kubeflow Deploy from Catalog 11.KUBEFLOW DOCSTFJOB DASHBOARD

  65. MULTI-CLUSTER APPS

  66. 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
  67. 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
  68. Multi-Cluster Apps Rancher2.2 !"$  Multi Kubernetes Cluster  &

     "$%# 
  69. Rancher AKS,EKS,GKE    Multi-Cluster Apps  Multi-Cluster Apps

  70. 1. Multi-Cluster Apps Launch   Multi-Cluster Apps

  71. 2.  wordwordpress View Details   Multi-Cluster Apps

  72. 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
  73. 4.1~4 Launch  42 .31 1 42 .31 1 Multi-Cluster

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

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

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

  77. INFORMATION

  78. 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
  79. Information Rancher Meetup Tokyo #18 (  &) 2019/3/19 (tue)

    19:0021:00 "$  (#%1-6-1 8)  !' 
  80. Information Cloud Native Kansai #02 2019/3/15 (fri) 19:0021:30 - 5-

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

    1 3 (- ) 3
  82. 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@"<B 13:0015:00(110min+10min) GYS DockerGY 15:0016:30(80min+10min) GYS Kubernetes%(+/5*46 16:3017:30(60min) ;\S Rancher & Kubernetes #rancherjp Coupon Code rancherjp1000 #kujiraya Coupon Code kujiraya1000 CloudNative Days 2019 CloudNative Days Tokyo 2019 OpenStack Days Tokyo 2019 Toranomon Hills Forum, July 22-23, 2019 CloudNative Days Kansai 2019 2019.4.16 https://eventregist.com/e/cndf2019 JapanContainerDaysOQTF 17Docker/Kubernetes"GY=!IDJ9/ 516' ";H/516'"C&62#56+U
  83. KubeCon + CloudNativeCon China 2018 Recap http://u0u0.net/PGHs 8 2 8

    1 01 ! 2 Rancher Yes !!
  84. KubeCon + CloudNativeCon NA 2018 Recap http://ur0.link/PkTG http://ur0.link/PkUm

  85. ! !