我在Ubuntu虚拟机上安装了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.发布于 2017-02-24 20:08:54
下面的URL没有"proxy“,适用于我:
http://127.0.0.1:8080/api/v1/namespaces/kube-system/services/heapster发布于 2017-05-26 21:47:31
在通过代理进行查询时,尝试如下所示
/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的真正的404,因为对root的请求没有被处理。
堆模型的所有后缀都可以在这里找到:https://github.com/kubernetes/heapster/blob/master/docs/model.md
https://stackoverflow.com/questions/40419018
复制相似问题