代码之家  ›  专栏  ›  技术社区  ›  Ijaz Ahmad

在Kubernetes 1.10中禁用heapster健康检查

  •  1
  • Ijaz Ahmad  · 技术社区  · 7 年前

    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.
    

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

    1 回复  |  直到 7 年前
        1
  •  3
  •   Nick_Kh    7 年前

    你可以找到Heapster的弃用时间表 here

    我在Kubernetes cluster 1.10版本中发现了这一点 kubernetes-dashboard Pod产生此类错误消息:

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

    2018/10/22 13:04:36度量客户端运行状况检查失败:服务器 30秒后重试。

    看来 kubernetes仪表板 仍然需要Heapster服务来实现度量和图形目的。

    推荐文章