【问题标题】:grafana not showing in kubernetes heapstergrafana 未在 kubernetes heapster 中显示
【发布时间】:2016-06-23 13:36:58
【问题描述】:

我尝试在我的 kubernetes 集群上安装带有 grafana 和 influxdb 的 heapster。我无法看到grafana的页面,它只显示alert.title

我认为我做的一切都是正确的,所有的日志看起来都不错,但这是最后一个问题:如果有人愿意向我展示发生了什么,我将不胜感激。

这是我的日志的一部分:

2016/06/23 13:31:23 [I] Completed 172.17.77.1 - "GET /favicon.ico HTTP/1.1" 404 Not Found 2929 bytes in 1224us
2016/06/23 13:31:30 [I] Completed 172.17.77.1 - "GET /grafana HTTP/1.1" 404 Not Found 2929 bytes in 1154us
2016/06/23 13:31:30 [I] Completed 172.17.77.1 - "GET /api/v1/proxy/namespaces/default/services/monitoring-grafana/public/app/app.ca0ab6f9.js HTTP/1.1" 404 Not Found 23 bytes in 545us
2016/06/23 13:31:30 [I] Completed 172.17.77.1 - "GET /api/v1/proxy/namespaces/default/services/monitoring-grafana/public/css/grafana.dark.min.a95b3754.css HTTP/1.1" 404 Not Found 23 bytes in 786us
2016/06/23 13:31:40 [I] Completed 172.17.77.1 - "GET /monitoring-grafana HTTP/1.1" 404 Not Found 2929 bytes in 1409us
2016/06/23 13:31:40 [I] Completed 172.17.77.1 - "GET /api/v1/proxy/namespaces/default/services/monitoring-grafana/public/app/app.ca0ab6f9.js HTTP/1.1" 404 Not Found 23 bytes in 879us
2016/06/23 13:31:40 [I] Completed 172.17.77.1 - "GET /api/v1/proxy/namespaces/default/services/monitoring-grafana/public/css/grafana.dark.min.a95b3754.css HTTP/1.1" 404 Not Found 23 bytes in 1349us
2016/06/23 13:31:46 [I] Completed 172.17.77.1 - "GET /api/v1/proxy/namespaces/default/services/monitoring-grafana/public/app/app.ca0ab6f9.js HTTP/1.1" 404 Not Found 23 bytes in 837us
2016/06/23 13:31:46 [I] Completed 172.17.77.1 - "GET /api/v1/proxy/namespaces/default/services/monitoring-grafana/public/css/grafana.dark.min.a95b3754.css HTTP/1.1" 404 Not Found 23 bytes in 1181us

更新: 好的,我在 influxdb-grafana-controller.yaml 中找到了一些东西,我将值:/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/ 更改为值:/

我不知道这是否是一个好的解决方案,但它正在工作。

【问题讨论】:

  • 可能是这个GH issue。您使用的是哪个版本的 Kubernetes 和 Heapster?
  • 你好,我用的是kubernetes 1.2.0和这个链接link[link]里的heapster,我去看看GH问题。
  • 感谢您的更新!我评论了github issue 建议重新打开它,因为您已经在 kubernetes v1.2 中看到它

标签: kubernetes grafana heapster


【解决方案1】:

好的,我找到了解决方案,我的集群有缺陷。我也必须在主人身上安装法兰绒。由于 vagrant,使用选项 --iface=eth1。

我遵循了这个指南http://severalnines.com/blog/installing-kubernetes-cluster-minions-centos7-manage-pods-services,但他们没有说要在master上安装法兰绒。

您可以从 influxdb-grafana-controller.yaml 中删除 NodePort,也可以将值 : api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/ 放回去。

现在一切正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-15
    • 1970-01-01
    • 2018-10-24
    • 2019-08-07
    • 2018-08-15
    • 2016-11-16
    相关资源
    最近更新 更多