Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let's start Cloud Native with Rancher !! "Featu...

cyberblack28
March 02, 2019
550

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

Rancher Meetup in Nagoya #01

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. 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
  4. What’s Rancher ? • ,"0&.)80#@? =B:6 0#>5&,! %* • '!$"

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

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

    (%!  !    Creating Private Catalogs ! ! )" '&  +*  
  11. 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
  12. 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
  13. 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!!
  14. 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
  15.    PrometheusGrafana   Deploy from Catalog function

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

    2 steps Rancher’s New Multi-Tenant Prometheus Support
  17. 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
  18. Kubeflow Deploy from Catalog Kubernetes     

    https://github.com/kubeflow/kubeflow
  19. 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
  20. 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/
  21. 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
  22. 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   
  23. 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 >
  24. 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
  25. 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
  26. 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
  27. 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
  28. Information Rancher Meetup Tokyo #18 (  &) 2019/3/19 (tue)

    19:0021:00 "$  (#%1-6-1 8)  !' 
  29. 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
  30. ! !