【问题标题】:Kubernetes Heapster not workingKubernetes Heapster 不工作
【发布时间】:2017-05-26 21:47:30
【问题描述】:

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

wget http://127.0.0.1:8080/api/v1/proxy/namespaces/kube-system/services/heapster

我收到错误:

--2016-11-04 14:44:41--  http://127.0.0.1:8080/api/v1/proxy/namespaces/kube-system/services/heapster
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: /api/v1/proxy/namespaces/kube-system/services/heapster/ [following]
--2016-11-04 14:44:42--  http://127.0.0.1:8080/api/v1/proxy/namespaces/kube-system/services/heapster/
Reusing existing connection to 127.0.0.1:8080.
HTTP request sent, awaiting response... 404 Not Found
2016-11-04 14:44:42 ERROR 404: Not Found.

【问题讨论】:

    标签: kubernetes heapster


    【解决方案1】:

    以下没有“代理”的 URL 对我有用:

    http://127.0.0.1:8080/api/v1/namespaces/kube-system/services/heapster
    

    【讨论】:

      【解决方案2】:

      通过代理查询时尝试以下操作

      • /api/v1/proxy/namespaces/kube-system/services/https:heapster/api/v1/model/namespaces/
      • /api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/
      • /api/v1/proxy/namespaces/kube-system/services/http:heapster/api/v1/model/namespaces/

      这为 heapster 侦听器指定了一个端口和一些后缀。我假设您确实收到了响应,但响应是来自 heapster 的真正 404,因为未处理对 root 的请求。

      heapster 模型的所有后缀都可以在这里找到:https://github.com/kubernetes/heapster/blob/master/docs/model.md

      【讨论】:

        猜你喜欢
        • 2016-11-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-18
        • 2019-08-07
        相关资源
        最近更新 更多