HeapSter安装(k8s1.11以后废弃了)

Posted zhangb8042

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HeapSter安装(k8s1.11以后废弃了)相关的知识,希望对你有一定的参考价值。

HeapSter
InfluxDB(持久存储) 
Grafana 展示InfluxDB的数据(类似kibana)

#安装InfluxDB
#github
https://github.com/kubernetes-retired/heapster

#下载文件
wget https://raw.githubusercontent.com/kubernetes-retired/heapster/master/deploy/kube-config/influxdb/influxdb.yaml
#导入
kubectl  apply -f  influxdb.yaml 


#部署HeapSter
#下载HeapSter的yaml文件
wget https://raw.githubusercontent.com/kubernetes-retired/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml
wget https://raw.githubusercontent.com/kubernetes-retired/heapster/master/deploy/kube-config/influxdb/heapster.yaml

#导入


#部署Grafana

#下载yaml
wget https://raw.githubusercontent.com/kubernetes-retired/heapster/master/deploy/kube-config/influxdb/grafana.yaml

#导入
kubectl apply -f  grafana.yaml

#给svc打补丁
将grafana的svc类型定义为NodePort让外部访问


#可使用浏览器访问

  

以上是关于HeapSter安装(k8s1.11以后废弃了)的主要内容,如果未能解决你的问题,请参考以下文章

k8s监控组件heapster安装部署

k8s安装之eventrouter.yaml

[k8s]dashboard1.8.1搭建( heapster1.5+influxdb+grafana)

K8S插件 heapster

K8S集群监控—cAdvisor+Heapster+InfluxDB+Grafana

Ansible一键安装K8s1.10x and K8s1.11x