2016-11-04 62 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

相關問題