在 Kubernetes 1.10 中禁用堆健康检查
Disabling heapster health checks in Kubernetes 1.10
在执行 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 在新版本中已被弃用),但是无论如何要禁用这些检查以避免这些嘈杂的消息。
您可以找到 Heapster 弃用时间表 here。
我发现在 Kubernetes 集群 1.10 版本 kubernetes-dashboard
Pod 中产生了这样的错误消息:
kubectl --namespace=kube-system log <kubernetes-dashboard-Pod>
2018/10/22 13:04:36 Metric client health check failed: the server
could not find the requested resource (get services heapster).
Retrying in 30 seconds.
似乎 kubernetes-dashboard
仍然需要 Heapster 服务来实现指标和图形目的。
在执行 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 在新版本中已被弃用),但是无论如何要禁用这些检查以避免这些嘈杂的消息。
您可以找到 Heapster 弃用时间表 here。
我发现在 Kubernetes 集群 1.10 版本 kubernetes-dashboard
Pod 中产生了这样的错误消息:
kubectl --namespace=kube-system log <kubernetes-dashboard-Pod>
2018/10/22 13:04:36 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
似乎 kubernetes-dashboard
仍然需要 Heapster 服务来实现指标和图形目的。