3

在做的时候kubectl cluster-info dump,我看到了很多:

2018/10/18 14:47:47 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:48:17 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:48:47 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:49:17 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:49:47 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:50:17 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:50:47 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.

也许这是一个将在新版本中修复的错误(heapster 在新版本中无论如何都已弃用),但无论如何要禁用这些检查以避免这些嘈杂的消息。

4

1 回答 1

3

您可以在此处找到 Heapster 弃用时间表。

我发现在 Kubernetes 集群 1.10 版本kubernetes-dashboard的 Pod 中会产生这样的错误信息:

kubectl --namespace=kube-system log <kubernetes-dashboard-Pod>

2018/10/22 13:04:36 Metric 客户端健康检查失败:服务器找不到请求的资源(获取服务堆)。30 秒后重试。

似乎kubernetes-dashboard仍然需要 Heapster 服务来实现指标和图形目的。

于 2018-10-22T13:22:58.583 回答