Slide 1

Slide 1 text

Rancher Meetup Tokyo #18 2019.3.19 © 2019 cyberblack28 MONITORING OF RANCHER!!

Slide 2

Slide 2 text

Profile Twitter:cyberblack28 Hatena Blog:https://cyberblack28.hatenablog.com/ Speaker Deck:https://speakerdeck.com/cyberblack28 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

Slide 3

Slide 3 text

Profile http://bit.ly/thinkit_rancher

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

1. Basic Monitoring 2. Alerts & Notifiers 3. Basic Logging 4. Monitoring & Logging Catalogs 5. Rancher’s New Multi-Tenant Prometheus Support 6. Multi-Cluster Apps 7. Information Agenda

Slide 6

Slide 6 text

BASIC MONITORING

Slide 7

Slide 7 text

Basic Monitoring 1.Cluster

Slide 8

Slide 8 text

Basic Monitoring 2.Nodes

Slide 9

Slide 9 text

NOTIFIERS & ALERTS

Slide 10

Slide 10 text

Notifiers & Alerts 1.Notifers Alert notification destination

Slide 11

Slide 11 text

VZ Notifiers & Alerts 2.Alerts Default Setting (V2.2.0-rc6) etcd kube components event node a.Cluster Alert Default

Slide 12

Slide 12 text

VZ Notifiers & Alerts Default Setting (V2.2.0-rc6) Workload Memory ※You need to enable Promethus features. b.Project Alert Default

Slide 13

Slide 13 text

VZ Alert Rule Name Name Setting Alert Choose a Notifier Expression Select Metric Node Selector Node Select Setting Node Node Name Select Notifiers & Alerts 3.Alert Setting Normal or Warning • DaemonSet • Deployment • Node • Pod • StatefulSet System Service • scheduller • etcd • controll-manager Alert Group Name Name Setting New by Prometheus

Slide 14

Slide 14 text

BASIC LOGGING

Slide 15

Slide 15 text

VZ Basic Logging Logging linkage

Slide 16

Slide 16 text

MONITORING & LOGGING CATALOGS

Slide 17

Slide 17 text

VZ Monitoring & Logging Catalogs

Slide 18

Slide 18 text

RANCHER’S NEW MULTI- TENANT PROMETHEUS SUPPORT

Slide 19

Slide 19 text

Rancher’s New Multi-Tenant Prometheus Support So far, deploy Prometheus and Grafana from the catalog function. Deploy from Catalog function

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

1.Construct Rancher Server Rancher’s New Multi-Tenant Prometheus Support 3.Create Kubernetes Cluster 4.Prometheus Set up 2.Create Node Instance

Slide 25

Slide 25 text

1.Construct Rancher Server 1.Instance Prepare 2.Docker Install $ curl https://releases.rancher.com/install-docker/18.09.sh | sh 3.Rancher v2.2.0-Alpha6 Server Install $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:v2.2.0-rc6 Rancher’s New Multi-Tenant Prometheus Support Item Input Summary Name rancher-server Region asia-northeast1Tokyo Zone asia-northeast1-b MachineType vCPUx1 BootDisk Ubuntu 16.04 LTS DiskSize 80GB Firewall Allow HTTP trafic,Allow HTTPS trafic

Slide 26

Slide 26 text

4. Launch your browser to access RancherUI https://EXTERNAL-IP/ 5. Initial login Rancher’s New Multi-Tenant Prometheus Support

Slide 27

Slide 27 text

Rancher’s New Multi-Tenant Prometheus Support 6.Activate the Helm Catalog Select upper menu “Tools”-”Catalogs” Change to “Enable” Select “Global”

Slide 28

Slide 28 text

2.Create Node Instance Rancher’s New Multi-Tenant Prometheus Support 2.Install Docker on rancher-host $ curl https://releases.rancher.com/install-docker/18.09.sh | sh 1.Instance Prepare Item Input Summary Name rancher-host Region asia-northeast1Tokyo Zone asia-northeast1-b MachineType vCPUx1 BootDisk Ubuntu 16.04 LTS DiskSize 80GB Firewall Allow HTTP traffic,Allow HTTPS traffic

Slide 29

Slide 29 text

1.Press "Add Cluster" button Rancher’s New Multi-Tenant Prometheus Support 3.Create Kubernetes Cluster

Slide 30

Slide 30 text

Rancher’s New Multi-Tenant Prometheus Support 2.Select “Custom”, enter an arbitrary name for “Cluster Name”, and press the “Next” button 1 2 Select when linking with GKE, EKS, AKS Select when linking with Cloud Provider such as EC2, Azure, DigitalOcean, vSpher, etc. Select when linking with an existing Kubernetes Cluster

Slide 31

Slide 31 text

Rancher’s New Multi-Tenant Prometheus Support 3 You can choose the version of Kubernetes. , . , ,

Slide 32

Slide 32 text

Rancher’s New Multi-Tenant Prometheus Support 3.Click “Show advanced options”

Slide 33

Slide 33 text

Rancher’s New Multi-Tenant Prometheus Support 4. Check “etcd” and “Control Plane” of “Node Role”, enter the IP address of the second (rancher-host) in “Public Address” and “Internal Address” of “Node Address”, “Copy to Clipboard” Press the button and execute the command on the second (rancher-host) console and then press the “Done” button 1 2

Slide 34

Slide 34 text

Rancher’s New Multi-Tenant Prometheus Support 3 5 4

Slide 35

Slide 35 text

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

Slide 36

Slide 36 text

Rancher’s New Multi-Tenant Prometheus Support 6.

Slide 37

Slide 37 text

Rancher’s New Multi-Tenant Prometheus Support 1.Select upper menu “Tools” - ”Monitoring” 4.Prometheus Set up

Slide 38

Slide 38 text

Rancher’s New Multi-Tenant Prometheus Support 2.Select “Enabled” and press “Save” button 1 2

Slide 39

Slide 39 text

Rancher’s New Multi-Tenant Prometheus Support 3.Upper menu “rancher-k8s-cluster“ – “Global“ Select

Slide 40

Slide 40 text

Rancher’s New Multi-Tenant Prometheus Support 4.Select cluster name

Slide 41

Slide 41 text

Rancher’s New Multi-Tenant Prometheus Support 5.Confirm that the Grafana button has been added

Slide 42

Slide 42 text

Rancher’s New Multi-Tenant Prometheus Support 6.Expand accordion menu . . .

Slide 43

Slide 43 text

Rancher’s New Multi-Tenant Prometheus Support 7.Click on the Grafana icon to see in the Grafana dashboard

Slide 44

Slide 44 text

Rancher’s New Multi-Tenant Prometheus Support Nodes Cluster 6.Press "Launch kubectl" button

Slide 45

Slide 45 text

Rancher’s New Multi-Tenant Prometheus Support Console lauch

Slide 46

Slide 46 text

Rancher’s New Multi-Tenant Prometheus Support 8.Execute "kubectl get pods --all-namespaces" to check the status # 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-j9ql4 1/1 Running 0 14m cattle-prometheus exporter-node-cluster-monitoring-96wg8 1/1 Running 0 14m cattle-prometheus grafana-cluster-monitoring-65d7cfccd8-xzhxf 2/2 Running 0 14m cattle-prometheus prometheus-cluster-monitoring-0 5/5 Running 1 14m cattle-prometheus prometheus-operator-monitoring-operator-579985494b-52zhh 1/1 Running 0 14m cattle-system cattle-cluster-agent-65566c9cd4-7dhdx 1/1 Running 0 26m cattle-system cattle-node-agent-vst9b 1/1 Running 0 26m cattle-system kube-api-auth-8qbs9 1/1 Running 0 26m ingress-nginx default-http-backend-78fccfc5d9-ffkjm 1/1 Running 0 26m ingress-nginx nginx-ingress-controller-4hlvm 1/1 Running 0 26m kube-system canal-q7cvr 2/2 Running 0 26m kube-system kube-dns-58bd5b8dd7-22dvk 3/3 Running 0 26m kube-system kube-dns-autoscaler-77bc5fd84-lb75t 1/1 Running 0 26m kube-system metrics-server-58bd5dd8d7-5mmlx 1/1 Running 0 26m kube-system rke-ingress-controller-deploy-job-r6xbk 0/1 Completed 0 26m kube-system rke-kube-dns-addon-deploy-job-82db5 0/1 Completed 0 26m kube-system rke-metrics-addon-deploy-job-9gclh 0/1 Completed 0 26m kube-system rke-network-plugin-deploy-job-2hltf 0/1 Completed 0 26m >

Slide 47

Slide 47 text

MULTI-CLUSTER APPS

Slide 48

Slide 48 text

Multi-Cluster Apps Deploy and deploy apps to multiple Kubernetes clusters, and launch "Rancher 2.2" with new features such as rolling updates by Publickey 2019.2.15 https://rancher.com/blog/ https://www.publickey1.jp/blog/19/kubernetesrancher_22.html

Slide 49

Slide 49 text

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

Slide 50

Slide 50 text

Multi-Cluster Apps New to Rancher 2.2 is the ability to deploy applications from the catalog in bulk to Multi Kubernetes Cluster.

Slide 51

Slide 51 text

In conjunction with Rancher, run Multi-Cluster Apps from the place where I built a cluster on AKS, EKS, GKE. Multi-Cluster Apps

Slide 52

Slide 52 text

1.Select the upper menu “Multi-Cluster Apps” and press the “Launch” button. Multi-Cluster Apps

Slide 53

Slide 53 text

2.Enter “word” in the search field and press the “View Details” button on “wordpress” Multi-Cluster Apps

Slide 54

Slide 54 text

3.Set 1 to 3 " , , " , 2 - 3. " . 1, 1 , - . - . , 2 - . By selecting the namespace for the kubernetes cluster to deploy You can deploy to multi- kubernetes cluster. Multi-Cluster Apps

Slide 55

Slide 55 text

4.Set 4.1 to 4 and press the “Launch” button .3 1 . 224 1 3 2 .3 1 . 224 1 3 . 1 Multi-Cluster Apps

Slide 56

Slide 56 text

5.Completed wordpress deployment on aks-kubernetes-cluster, eks-kubernetes-cluster, gke-kubernetes- cluster Multi-Cluster Apps

Slide 57

Slide 57 text

6. Access WordPress by clicking 443/tcp, 80/tcp in Service of AKS, EKS, GKE Multi-Cluster Apps

Slide 58

Slide 58 text

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

Slide 59

Slide 59 text

INFORMATION

Slide 60

Slide 60 text

Information Cloud Native Tokyo #01 2019/4/10 (wed) 18:3022:00 NTT Software Innovation Center 34F Granpark Tower, 3-4-1 Shibaura, Minato, TokyoS Container Orchestration Platform OpenShift & Rancher Feature

Slide 61

Slide 61 text

Docker / Kubernetes / Rancher One Day Training 2019.4.15 https://eventregist.com/e/cndf2019training #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 We will carry out popular training in JapanContainerDays as well, and we will carry out the “limited training to learn Docker / Kubernetes / Rancher from the foundation in one day”. Let's get training and attend the conference!

Slide 62

Slide 62 text

ONE MORE THING…

Slide 63

Slide 63 text

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

Slide 64

Slide 64 text

Rancher v2.2.0-rc3 or later Support k3s cluster import !!

Slide 65

Slide 65 text

Information #01 2019/3/26 (tue) 18:3021:00 4-23-1 Ebisu, Shibuya-ku, Tokyo #02 2019/4/11 (thu) 18:3021:00

Slide 66

Slide 66 text

! !