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让外部访问


#可使用浏览器访问

  

转载于:https://www.cnblogs.com/zhangb8042/p/10204209.html

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐