2016-11-04 58 views
0

我在Ubuntu VM上安装了kubernetes集群 我也安装了heapster。 但是当我做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

以下网址是没有“代理”工作对我来说:

http://127.0.0.1:8080/api/v1/namespaces/kube-system/services/heapster 
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

相关问题