我在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.
答案 0 :(得分:0)
以下没有“代理”的网址对我有用:
http://127.0.0.1:8080/api/v1/namespaces/kube-system/services/heapster
答案 1 :(得分:0)
在通过代理
查询时尝试以下内容/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