美文网首页
k8s集成Heapster监控

k8s集成Heapster监控

作者: 钾肥尔德 | 来源:发表于2019-07-31 13:03 被阅读0次

1.13起已不再支持Heapster

  • 获取部署Heaptster组件的yaml文件
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