问题标签 [heapster]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
222 浏览

kubernetes - Kubernetes 自动缩放和 heapster 问题

我正在尝试在我的 kubernetes 集群中设置自动缩放。在为它部署 heapster 和服务之后。我面临以下错误。

Heapster 成功地从 pod 中提取指标,并且可以在

http://master:8080/api/v1/proxy/namespaces/kube-system/services/heapster/apis/metrics/v1alpha1/namespaces/default/pods

我在所有 heapster 版本(heapster:canary, v1.2.0-beta.2, v1.1.0)中都遇到了这个问题

以下是有关我的环境的更多详细信息

Kubernetes版本客户端版本:version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5", GitCommit:"b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5", GitTreeState:"clean", BuildDate:"2016-08-11T20: 29:08Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} 服务器版本: version.Info{Major:"1", Minor:"3", GitVersion:"v1 .3.5", GitCommit:"b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5", GitTreeState:"clean", BuildDate:"2016-08-11T20:21:58Z", GoVersion:"go1.6.2", 编译器:"gc", 平台:"linux/amd64 "}

自定义/本地集群

操作系统(例如来自 /etc/os-release):NAME="CentOS Linux" VERSION="7 (Core)" 内核(例如 uname -a):Linux dev1-132869446-3-157772786 3.10.0-327.13.1。 el7.x86_64 #1 SMP 2016 年 3 月 31 日星期四 16:04:38 UTC x86_64 x86_64 x86_64 GNU/Linux

自动缩放 (HPA)中的建议未能获得 CPU 消耗:无法将对象解组为 []v1alpha1 类型的 Go 值。PodMetrics无法解决问题

0 投票
0 回答
407 浏览

kubernetes - Kubernetes Horizontal Pod Autoscaler on GKE - "failed to get CPU utilization"

I am fairly new to Kubernetes and GKE (Google Container Engine) as a whole, so I was playing with the horizontal pod autoscaling and cluster autoscaling features by hitting my load balancer hard enough to make it scale up enough pods that it needed more instances, so it scaled those up but then it got to the point that there were some pods in Pending state, but it had also reached the max number of instances for the autoscaling cluster, so they were left in Pending state.

I then stopped the load test hoping it would come down on its own, but it wouldn't. I looked at kubectl describe hpa and I would see errors like:

There are actually only 4 pods running (and none in pending state), and looking at the heapster logs (kubectl logs -f heapster-v1.1.0-<id> --namespace=kube-system heapster) I can see it is actually looking for metrics in a pod that doesn't exist anymore (this would be the mystery 5th pod it's complaining about).

The issue with this is that because it is missing the 5th pod, it can't finish getting the current CPU utilization for the 4 pods that are running, and thus horizontal pod autoscaling doesn't work.

Any ideas how to get out of a situation like this?

I've tried removing the hpa and creating it again, but it didn't help.

0 投票
1 回答
1204 浏览

kubernetes - 具有 heapster 格式的 cAdvisor 自定义指标

我目前有一个配置了 Heapster/InfluxDB/Grafana 的 Kubernetes 集群。

我知道 Kubelet 现在有一个嵌入式 cAdvisor 实例,我已将其配置为查看应用程序端点以收集自定义指标。

我遵循了本指南:http ://guoshimin.github.io/2016/06/03/custom-metrics.html :

目前 Kubelet 正在抛出错误 -

似乎认为我正在使用 Prometheus 配置。由于我的设置中没有普罗米修斯,我应该使用不同的格式来收集指标并将它们传递给 Heapster 吗?

0 投票
2 回答
522 浏览

kubernetes - Kubernetes Heapster 不工作

我在 Ubuntu VM 上安装了 kubernetes 集群,还安装了 heapster。但是当我这样做时

我收到错误:

0 投票
1 回答
286 浏览

docker - 连接 Kubernetes master,更新 heapster

我想更新 Heapster 配置(为 influxdb 添加接收器)。问题是,由于我们是通过 Google Container Engine 创建集群的,所以 heapster 是默认创建的,并且在 kubernetes master 上有配置文件。我无法像连接到 minion 节点 (ssh) 一样连接到 kubernetes master。我想知道是否有办法直接通过 k8s master 上的配置文件或通过 kubernetes API 更新 heapster pod 配置

0 投票
1 回答
1140 浏览

kubernetes - 如何在 Stackdriver Monitoring 中针对自定义指标设置警报?

当我尝试在 Stackdriver Monitoring 中创建提醒政策时,我的自定义指标未显示在下拉列表中。当我尝试在 Stackdriver Monitoring 信息中心添加图表时,它们会出现。我还需要做些什么来使这些自定义指标具有警报吗?

这些自定义指标是在 Kubernetes 上使用 heapster 创建的。我仍在试用 Stackdriver Premium。

这是创建图表时资源类型列表的屏幕截图。

在此处输入图像描述

这是创建警报策略条件时资源类型列表的屏幕截图。

在此处输入图像描述

0 投票
2 回答
1352 浏览

kubernetes - 使用 Rancher 1.5.1 安装干净的 Kubernetes 1.5.0 后如何访问 Heapster 的 Grafana 仪表板

我正在使用 Rancher 1.5.1 在 AWS 上部署我的测试 Kubernetes 集群。

我先部署Rancher,确保hosts注册后没有错误。然后我使用 Rancher 目录中的“Kubernetes”条目安装 Kubernetes。这似乎成功,没有任何错误,我可以访问我的 1.5.0 Kubernetes:

据我了解,带有 InfluxDB 和 Grafana 仪表板的 Heapster 现在是默认 Kubernetes 安装的一部分。所有与 Heapster、InfluxDB 和 Grafana 相关的 pod 在日志和状态中都没有显示错误,并且似乎运行成功:

我只能在这里看到的奇怪的事情是“端口:”条目是空的(而不是像我预期的那样具有某些值)。

这是 influxdb-grafana-876329878-5qpsd 日志的一部分。似乎在 3000 端口成功启动:

服务也上线了:

最后,我既无法通过 Rancher 负载均衡器映射到监控 Grafana 端口 80(我收到 503“未找到服务”错误)也无法通过 Kubernetes 端口转发(连接超时)连接到 Grafana 仪表板

我的集群信息输出:

与此 Heapster 视频中展示的不同: https ://www.youtube.com/watch?v=xSMNR2fcoLs

任何人都可以提示可能出现什么问题以及如何连接到 Heapster 的 Grafana 仪表板?

0 投票
1 回答
246 浏览

azure - Azure k8s windows cluster, Internal Error: Missing stats for root container

I created a k8s windows cluster (1 master and 1 node). The kubernetes dashboard shows both nodes. The dashboard only shows resource utilization of the master.

On inspecting the heapster logs from the dashboard, I see the following error:

Kubulet logs on the windows node have the following error:

The default k8s cluster setup on ACS uses Heapster v1.2.0 and I noticed a newer release v1.3.0 is available. So I upgraded heapster, but the errors still exist.

0 投票
0 回答
315 浏览

kubernetes - Kubernetes Heapster 无法正常工作

我根据 github 中的文档设置了 kubernetes-dashboard 和 heapster。我的 kubernetes 客户端和服务器版本都是 1.5.4,整个集群部署在 10 台 ubuntu 14.04 操作系统的物理服务器上。我使用了 heapster 1.3。

我可以访问仪表板并看到一些关于cpu和内存使用情况的数字,但我不知道为什么有些pod没有这样的数字,即一些pod的cpu和内存使用情况没有以数字格式显示。下面两张图是例子。

仪表板显示 1 仪表板显示 2

另外,我发现有时对于一个 pod,它只显示内存,没有 cpu 使用情况。

我通过访问其 web ui 检查了每个节点上的 cAdvisor,它在每个节点上都运行良好。这个问题困扰了我好几天。有人可以帮我解决这个问题或给出一些提示吗?我会非常感谢你。

0 投票
1 回答
388 浏览

prometheus - Prometheus 的自定义水槽

是否可以为 Prometheus 定义自定义接收器?Heapster 提供了这样的功能,我想知道是否可以将 Prometheus 收集的时间序列数据写入标准输出。