[k8s]dashboard1.8.1 Construction (Heapster1.5+influxdb+grafana)

Source: Internet
Author: User
Tags grafana influxdb k8s

Dashboard Final Effect

More windows to execute SH

Heapster+influxdb+grafana Construction

The entire architecture is dashboard to detect Hepster service services, Heapster through Cadvisor collects data into the influxdb. Instead, dashboard accesses the 8086 port of the Heapster Svc to get the data drawing.

Prepare Yaml
https://github.com/kubernetes/heapster/blob/master/deploy/kube-config/influxdb[[email protected] influxdb]# tree ..├── grafana.yaml├── heapster.yaml└── influxdb.yaml
Modify the image and create
[[email protected] influxdb]# grep -r image: ../influxdb.yaml:        image: lanny/k8s.gcr.io_heapster-influxdb-amd64:v1.3.3./grafana.yaml:        image: lanny/k8s.gcr.io_heapster-grafana-amd64:v4.4.3 ./heapster.yaml:        image: lanny/gcr.io_google_containers_heapster-amd64:v1.5.0注: 这里用v1.5.0的heapster.看release用最新的,官方的yaml可能还是旧的
dashboard1.8.1 Deploying Dashboard 1.8.1

Https://github.com/kubernetes/dashboard/releases

Dashboard.yaml

Apiversion:extensions/v1beta1kind:deploymentmetadata:labels:app:kubernetes-dashboard Name:kubernetes-dashboard Namespace:kube-systemspec:replicas:1 Selector:matchlabels:app:kubernetes-dashboard Template:metadata : Labels:app:kubernetes-dashboard # Comment The following annotation if dashboard must not being deployed          On Master annotations:scheduler.alpha.kubernetes.io/tolerations: |              [{"Key": "Dedicated", "operator": "Equal", "Value": "Master", "Effect": "Noschedule"}] spec:containers:-Name:kubernetes-dashboard ima        ge:lanny/gcr.io_google_containers_kubernetes-dashboard-amd64:v1.8.1 imagepullpolicy:ifnotpresent Ports: -containerport:9090 protocol:tcp args: # Uncomment the following line to manually specif Y Kubernetes API Server Host # If not specified, Dashboard would attempt to auto discover the API server and connect # to it.          Uncomment only if the default does isn't work. #---apiserver-host=http://my-address:port---apiserver-host=http://192.168.x.x:8080---heapster-ho        St=http://heapster #要有这玩意, otherwise the Heapster check fails after creation, causing the UI not to display graphics. LivenessProbe:httpGet:path:/port:9090 initialdelayseconds:30 Timeou tseconds:30---kind:serviceapiversion:v1metadata:labels:app:kubernetes-dashboard name:kubernetes-dashboard nam Espace:kube-systemspec:type:nodeport ports:-port:80 targetport:9090 Selector:app:kubernetes-dashboard
Problems that appear UI graphics do not show

Dashboard log: Dashboard will go to Heapster's 8082 port to get the data to show the graphics. I can't see heapster here, but Heapster's log is fine.

  2018/01/02 04:14:29 Metric Client Health Check Failed:an error on the server ("Error: ' Dial TCP 10.244.1.43:80 82:getsockopt:connection refused ' \ntrying to reach: ' Http://10.244.1.43:8082/healthz ') have prevented the request from S Ucceeding (Get services Heapster). Retrying in seconds.2018/01/02 04:15:20 Metric client Health Check Failed:an error on the server ("Error: ' Dial TCP 10 .244.1.43:8082:getsockopt:connection refused ' \ntrying to reach: ' Http://10.244.1.43:8082/healthz ') have prevented the Request from succeeding (Get services Heapster). Retrying in seconds.2018/01/02 04:16:11 Metric client Health Check Failed:an error on the server ("Error: ' Dial TCP 10 .244.1.43:8082:getsockopt:connection refused ' \ntrying to reach: ' Http://10.244.1.43:8082/healthz ') have prevented the Request from succeeding (Get services Heapster). Retrying in seconds.  

Workaround: Dashboard yaml plus - --heapster-host=http://heapster parameters can be
Reference: https://github.com/kubernetes/dashboard/issues/1602

When dashboard is created, Access does not appear in the UI

I use the Https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.1/src/deploy/recommended/kubernetes-dashboard.yaml of the reference website
Found this problem, all used 1.7 of YAML, temporarily did not go to the bottom.

[k8s]dashboard1.8.1 Construction (Heapster1.5+influxdb+grafana)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.