【问题标题】:Kubernete UI dashboard no cpu and memory usage informationKubernetes UI仪表板没有cpu和内存使用信息
【发布时间】:2019-06-25 17:44:22
【问题描述】:

我是新的 Kubernetes。最近设置了一个包含两个服务的集群。

但是每个 pod 的 cpu 和内存信息并没有显示在仪表板中。

请让我知道我错过了什么。

我从这里安装了矩阵服务器 https://github.com/kubernetes-incubator/metrics-server

当我执行kubectl top nodes -v 10

响应总是

I0622 18:15:03.699282    5524 round_trippers.go:438] GET https://172.*.*.*:6443/api/v1/namespaces/kube-system/services/http:heapster:/proxy/apis/metrics/v1alpha1/nodes?labelSelector= 200 OK in 3 milliseconds
I0622 18:15:03.699306    5524 round_trippers.go:444] Response Headers:
I0622 18:15:03.699313    5524 round_trippers.go:447]     Content-Type: application/json
I0622 18:15:03.699320    5524 round_trippers.go:447]     Date: Sat, 22 Jun 2019 18:15:03 GMT
I0622 18:15:03.699450    5524 request.go:942] Response Body: {
  "metadata": {},
  "items": null
 }
I0622 18:15:03.699550    7417 helpers.go:114] error: metrics not available yet

谢谢

【问题讨论】:

    标签: kubernetes


    【解决方案1】:

    尝试将这些参数用于度量服务器:

    args:
      - --kubelet-insecure-tls
      - --kubelet-preferred-address-types=InternalIP
    

    您还可以在此 github 问题中找到更多提示:https://github.com/kubernetes-incubator/metrics-server/issues/131

    【讨论】:

      猜你喜欢
      • 2022-01-15
      • 2019-05-14
      • 2021-10-23
      • 2017-11-21
      • 2018-09-11
      • 1970-01-01
      • 2018-11-19
      • 2017-06-09
      • 2017-12-19
      相关资源
      最近更新 更多