Rancher's New Mluti-Tenant Prometheus Support

7bcf6f29a0b9a348fe422a31a4f44752?s=47 cyberblack28
January 16, 2019

Rancher's New Mluti-Tenant Prometheus Support

Docker Meetup Tokyo #27

7bcf6f29a0b9a348fe422a31a4f44752?s=128

cyberblack28

January 16, 2019
Tweet

Transcript

  1. Docker Meetup Tokyo #27 2019.1.16 © 2019 cyberblack28 RANCHER’S NEW

    MLUTI-TENANT PROMETHEUS SUPPORT
  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. AP Communications Co., Ltd

  4. KubeCon + CloudNativeCon NA 2018 Recap http://ur0.link/PkTG Vitess MySQL Operator

    http://ur0.link/PkUm
  5. 1. What’s Rancher 2. Rancher’s New Multi-Tenant Prometheus Support Agenda

  6. WHAT’S RANCHER

  7. Feature of Rancher2.1 Kubernetes Clusters Create Import   

      Bare Metal Create,Import,Manage Kubernetes Clusters !! Manage
  8. Feature of Rancher2.1 One Click Deployment ! !  #-$,

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

  10. 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.5 - rancher/rancher:latest • Stable - v2.1.5 - rancher/rancher:stable Version Rancher Release - v2.1.0 http://urx3.nu/MJA0 Details
  11. RANCHER’S NEW MULTI- TENANT PROMETHEUS SUPPORT

  12. Rancher’s New Multi-Tenant Prometheus Support    PrometheusGrafana 

     Deploy from Catalog function
  13. Rancher’s New Multi-Tenant Prometheus Support http://ur0.link/PjFf Rancher Official Blog

  14. Rancher’s New Multi-Tenant Prometheus Support Rancher 2.2 simplifies and cuts

    this process down to just 2 steps
  15. Rancher’s New Multi-Tenant Prometheus Support Rancher Official Blog http://ur0.link/PjHe

  16. 1.Rancher Server Rancher’s New Multi-Tenant Prometheus Support 2.Single Kubernetes Cluster

    3.Kubernetes  4.Prometheus Verification Environment
  17. 1.Rancher Server 1.Instance 2.Docker $ curl https://releases.rancher.com/install-docker/17.03.2.sh | sh 3.Rancher

    v2.2.0-Alpha3 Server $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:v2.2.0-alpha3 Rancher’s New Multi-Tenant Prometheus Support    -+ rancher-server %#' asia-northeast1(, ' asia-northeast1-b "'! vCPUx1  Ubuntu 16.04 LTS 80GB   & HTTP$ 0/ HTTPS$ 0/ .* ) 
  18. 4. RancherUI https://EXTERNAL-IP/ 5.  Rancher’s New Multi-Tenant Prometheus Support

  19. 2.Single Kubernetes Cluster Rancher’s New Multi-Tenant Prometheus Support 2.rancher-k8s-clusterDocker 

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

    
  21. Rancher’s New Multi-Tenant Prometheus Support 2.CustomCluster Name  Next 

    1 2 3
  22. Rancher’s New Multi-Tenant Prometheus Support 3.Node RoleetcdControl Plane  Copy

    to Clipboard  1 2
  23. Rancher’s New Multi-Tenant Prometheus Support 4.   rancher-k8s-cluster 

     $ sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.2.0-alpha3 --server https://35.243.83.224 --token xx9ttl6ckrkzppk6msvx7jzslcc75m8m7pwbws7fjvbdls2g9l6nrn --ca-checksum 487497cfc43e87a717ca8c775c2b0e19677bf0a73b5091ee1572b8546defec75 --etcd --controlplane --worker 5.Done 
  24. Rancher’s New Multi-Tenant Prometheus Support 6.rancher-k8s-cluster

  25. Rancher’s New Multi-Tenant Prometheus Support 1.  Tools-Monitoring 4.Prometheus

  26. Rancher’s New Multi-Tenant Prometheus Support 2.Prometheus  Save  

    1 2
  27. Rancher’s New Multi-Tenant Prometheus Support 3.   Prometheus +

    Grafana 
  28. Rancher’s New Multi-Tenant Prometheus Support 4.    

      
  29. Rancher’s New Multi-Tenant Prometheus Support 5.Grafana   Grafana 

  30. Rancher’s New Multi-Tenant Prometheus Support Nodes Cluster 6.Launch kubectl

  31. Rancher’s New Multi-Tenant Prometheus Support 7.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-779b96cf75-gg272 1/1 Running 0 20m cattle-prometheus exporter-node-cluster-monitoring-ljhch 1/1 Running 0 20m cattle-prometheus grafana-cluster-monitoring-5b4bc74756-hx7mx 3/3 Running 0 20m cattle-prometheus prometheus-cluster-monitoring-0 4/4 Running 1 20m cattle-prometheus prometheus-cluster-monitoring-nginx-5ff785dd4d-d6l8l 1/1 Running 3 20m cattle-prometheus prometheus-operator-system-monitor-77df6db6df-gdmmz 1/1 Running 0 20m cattle-system cattle-cluster-agent-77498f79c-5w78s 1/1 Running 0 30m cattle-system cattle-node-agent-s8gnz 1/1 Running 0 30m ingress-nginx default-http-backend-5bdd9fdd69-2ntmw 1/1 Running 0 30m ingress-nginx nginx-ingress-controller-xdwnk 1/1 Running 0 30m kube-system canal-wzw4r 3/3 Running 0 30m kube-system kube-dns-autoscaler-689f6f9756-zqn6f 1/1 Running 0 30m kube-system kube-dns-ddddcfcc8-xbpwn 3/3 Running 0 30m kube-system metrics-server-5444cf6dfc-g7xvp 1/1 Running 0 30m kube-system rke-ingress-controller-deploy-job-bshtx 0/1 Completed 0 30m kube-system rke-kubedns-addon-deploy-job-k9vxg 0/1 Completed 0 30m kube-system rke-metrics-addon-deploy-job-hmr7k 0/1 Completed 0 30m kube-system rke-network-plugin-deploy-job-tjqhn 0/1 Completed 0 31m
  32. 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
  33. ! !