k8s集成Heapster监控
作者:
钾肥尔德 | 来源:发表于
2019-07-31 13:03 被阅读0次
1.13起已不再支持Heapster
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/grafana.yaml
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yaml
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/influxdb.yaml
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml
- 将yaml文件中镜像image值
k8s.gcr.io
替换为
registry.cn-hangzhou.aliyuncs.com/google_containers
- 修改
grafana.yaml
文件,使其服务暴露到外部
ports:
- port: 80
targetPort: 3000
nodePort: 31112
selector:
k8s-app: grafana type: NodePort
- 部署Heapster
- 访问Grafana
http://<IP>:31112
本文标题:k8s集成Heapster监控
本文链接:https://www.haomeiwen.com/subject/avbzrctx.html
网友评论