NYC's Blog - 通过Heapster API获取Kubernetes监控数据 的评论 http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html zh-CN 在上篇文章《Kubernetes资源使用监控实践》中,我们已经介绍了如何在Kubernetes上面部署Heapster,以及结合InfluxDB和Grafana做了界面展示,但在最后我们提到很多... Thu, 19 Apr 2018 10:58:56 +0800 Thu, 19 Apr 2018 10:58:56 +0800 鱼丸 http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-458 http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-458 Thu, 19 Apr 2018 10:58:56 +0800 鱼丸 我后来给用户添加了权限,可以访问了。非常感谢。

]]>
http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-458#comments
NYC http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-456 http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-456 Mon, 16 Apr 2018 21:20:42 +0800 NYC 已经好久没有搞Kubernetes了,看这提示有可能是你开了认证,匿名用户无权访问。具体你可以Google下。

]]>
http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-456#comments
鱼丸 http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-452 http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-452 Mon, 09 Apr 2018 14:21:20 +0800 鱼丸 你好,有个问题,想请教一下。
我在openshift的环境里,通过#curl -X GET -H "Authorization: Bearer $TOKEN" https://hostname:8443/api/v1/namespaces/openshift-infra/services/heapster。是可以获取到heapster的api。
在使用您提供的脚本里修改HEAPSTER_URL 成上面的地址后,会提示“User "system:anonymous" cannot get services/api in the namespace "openshift-infra": User "system:anonymous" cannot get services/api in project "openshift-infra"。
因此想请教下您是否知道HEAPSTER_URL地址如何获取么?

]]>
http://niyanchun.com/get-k8s-monitor-data-by-heapster-api.html/comment-page-1#comment-452#comments