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

Let's start CloudNative with Rancher

Let's start CloudNative with Rancher

Rancher Meetup Osaka #07
#rancherjp

cyberblack28

March 16, 2019
Tweet

More Decks by cyberblack28

Other Decks in Technology

Transcript

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

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

      Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage “Kubernetes Everywhere”
  5. 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
  6. 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
  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 Multi Cloud to Multi Kubernetes CloudNtive to KubernetesNative
  8. Feature of Rancher2.1 One Click Deployment ! !  #-$,

    (%!  !    Creating Private Catalogs ! ! )" '&  +*  
  9. 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.7 - rancher/rancher:latest • Stable - v2.1.7 - rancher/rancher:stable Version Rancher Release - v2.1.0 http://urx3.nu/MJA0 Details
  10. 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
  11. 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!!
  12. Get started with Rancher 2.1 OS Hardware Software Ubuntu 16.04

    (64-bit) Memory: 4GB • 1.12.6 • 1.13.1 • 17.03.2 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
  13. 1.Rancher Server 1.Instance 2.Docker $ curl https://releases.rancher.com/install-docker/18.09.sh | sh 3.Rancher

    v2.2.0-rc4 Server $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:v2.2.0-rc4 Rancher’s New Multi-Tenant Prometheus Support    -+ rancher-server %#' asia-northeast1(, ' asia-northeast1-b "'! vCPUx1  Ubuntu 16.04 LTS 80GB   & HTTP$ 0/ HTTPS$ 0/ .* ) 
  14. 2.Single Kubernetes Cluster Rancher’s New Multi-Tenant Prometheus Support 2.rancher-k8s-clusterDocker 

    $ curl https://releases.rancher.com/install-docker/18.09.sh | sh 1.Instance   -+ rancher-host %#' asia-northeast1(, ' asia-northeast1-b "'! vCPUx1  Ubuntu 16.04 LTS 80GB   & HTTP$ 0/ HTTPS$ 0/ .* ) 
  15. Rancher’s New Multi-Tenant Prometheus Support 2.CustomCluster Name  Next 

    1 2 3 GKE,EKS,AKS C EC2,Azure,DigitalOcean,vSpher Cloud Provider C Kubernetes Cluster C Kubernetes C , C
  16. Rancher’s New Multi-Tenant Prometheus Support 4. Node Role etcd Control

    Plane Node Address Public Address Internal Address 2 (rancher-host) IP Copy to Clipboard 2 (rancher-host) - Done 1 2 3 5 4
  17. Rancher’s New Multi-Tenant Prometheus Support 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-58f946d4d7-mcpfk 1/1 Running 0 14m cattle-prometheus exporter-node-cluster-monitoring-56gk4 1/1 Running 0 14m cattle-prometheus grafana-cluster-monitoring-65d7cfccd8-grkzr 2/2 Running 0 14m cattle-prometheus prometheus-cluster-monitoring-0 5/5 Running 1 14m cattle-prometheus prometheus-operator-monitoring-operator-579985494b-hmrw6 1/1 Running 0 14m cattle-system cattle-cluster-agent-6569ff9b6c-v2mtz 1/1 Running 0 21m cattle-system cattle-node-agent-qv9j5 1/1 Running 0 21m cattle-system kube-api-auth-45fx8 1/1 Running 0 21m ingress-nginx default-http-backend-78fccfc5d9-m2pck 1/1 Running 0 21m ingress-nginx nginx-ingress-controller-8xtn4 1/1 Running 0 21m kube-system canal-nthfl 2/2 Running 0 21m kube-system kube-dns-58bd5b8dd7-bcrgm 3/3 Running 0 21m kube-system kube-dns-autoscaler-77bc5fd84-m4b4q 1/1 Running 0 21m kube-system metrics-server-58bd5dd8d7-57jhl 1/1 Running 0 21m kube-system rke-ingress-controller-deploy-job-j7h8b 0/1 Completed 0 21m kube-system rke-kube-dns-addon-deploy-job-7dn9f 0/1 Completed 0 21m kube-system rke-metrics-addon-deploy-job-j6hc9 0/1 Completed 0 21m kube-system rke-network-plugin-deploy-job-cxbk2 0/1 Completed 0 21m >
  18. 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
  19. 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
  20. 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
  21. 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
  22. Information Rancher Meetup Tokyo #18 (  &) 2019/3/19 (tue)

    19:0021:00 "$  (#%1-6-1 8)  !' 
  23. Information Cloud Native Tokyo #01 2019/4/10 (wed) 18:3022:00 !#*'*(+-"$ 

       %&)0,21 3-4-1 (   34F)      OpenShift & Rancher ./
  24. 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
  25. Lightweight Kubernetes Easy to install. A binary of less than

    40 MB. Only 512 MB of RAM required to run. Cross-Cluster Network Connectivity for Kubernetes
  26. ! !