Slide 1

Slide 1 text

TECHCHORUS NIGHT 2018.12.19 © 2018 cyberblack28 RANCHER’S NEW MLUTI-TENANT PROMETHEUS SUPPORT

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 Hobby1: Music,Live,FES !! Hobby2: 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

AP Communications Co., Ltd

Slide 4

Slide 4 text

Agenda 1. What’s Rancher 2. Rancher’s New Multi-Tenant Prometheus Support

Slide 5

Slide 5 text

WHAT’S RANCHER

Slide 6

Slide 6 text

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

Slide 7

Slide 7 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,Calico9 kubernetes!&,:.-73/ • Storage kubernetes2084 :.-73/

Slide 8

Slide 8 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 R d 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 dv v S h

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

Feature of Rancher2.1 Major developer catalogs

Slide 13

Slide 13 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.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:// Step 1: Prepare a Linux Host

Slide 14

Slide 14 text

RANCHER’S NEW MULTI-TENANT PROMETHEUS SUPPORT

Slide 15

Slide 15 text

Rancher’s New Multi-Tenant Prometheus Support rancher-server rancher-k8s-cluster Agent Server Control Plane etcd Worker

Slide 16

Slide 16 text

1.Rancher Server 1.Instance CPU 1Core 4GB SSD 100GB OS/# Ubuntu 16.04_64bit !" SSH Key rancher-server root root 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

Slide 17

Slide 17 text

4.RancherUI https://EXTERNAL-IP/ 5. Rancher’s New Multi-Tenant Prometheus Support

Slide 18

Slide 18 text

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 CPU 1Core 4GB SSD 100GB OS/# Ubuntu 16.04_64bit !" SSH Key rancher-k8s-cluster root root

Slide 19

Slide 19 text

3.Kubernetes 1.Add Cluster Rancher’s New Multi-Tenant Prometheus Support

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

4. rancher-k8s-cluster Rancher’s New Multi-Tenant Prometheus Support $ 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

Slide 23

Slide 23 text

6.rancher-k8s-cluster Rancher’s New Multi-Tenant Prometheus Support

Slide 24

Slide 24 text

7. Tools-Monitoring Rancher’s New Multi-Tenant Prometheus Support

Slide 25

Slide 25 text

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

Slide 26

Slide 26 text

9. Prometheus + Grafana Rancher’s New Multi-Tenant Prometheus Support

Slide 27

Slide 27 text

10. Rancher’s New Multi-Tenant Prometheus Support

Slide 28

Slide 28 text

11.Grafana Grafana Rancher’s New Multi-Tenant Prometheus Support

Slide 29

Slide 29 text

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

Slide 30

Slide 30 text

Rancher’s New Multi-Tenant Prometheus Support 13.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

Slide 31

Slide 31 text

https://rancher.com/blog/2018/2018-12-12-how-to-multi-tenant-prometheus-and-alpha-process/ How to Get Started with Rancher’s New Multi-Tenant Prometheus Support and Alpha Release Process Docs Rancher’s New Multi-Tenant Prometheus Support Rancher v2.2.0-Alpha3 Multi-Tenant Prometheus Support https://qiita.com/cyberblack28/items/8a1dbd26aef8a85e6b8e

Slide 32

Slide 32 text

Rancher Online Meetup Rancher’s New Multi-Tenant Prometheus Support 2018.12.191:00 PM US Eastern Time http://ur0.work/ODEk

Slide 33

Slide 33 text

! !