Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

[question]Failed to query pod metrics for cluster localhost:8001: 404 Not Found #234

Open
jinleileiking opened this issue Jun 26, 2019 · 6 comments

Comments

@jinleileiking
Copy link

No description provided.

@jinleileiking
Copy link
Author

sudo docker run -it --net=host -e SERVER_PORT=8765 hjacobs/kube-ops-view

@jinleileiking
Copy link
Author

run on a remote machine. kubctl works well

@hjacobs
Copy link
Owner

hjacobs commented Jun 27, 2019

Does kubectl top nodes work and show something? Did you deploy the Metrics Server? How is your Kubernetes cluster setup (managed, custom, cloud offering, ..)?

@jinleileiking
Copy link
Author

Top nodes works well. What does metric server mean? I ran proxy and localhost 8001 canbe telneted

@jinleileiking
Copy link
Author

K8s ran on bare metal

@jjangga0214
Copy link

I'm having similar repetitive error messages.

Info: localhost, minikube, ubuntu 19.04, 64 bits

$ minikube version

minikube version: v1.5.2
commit: 792dbf92a1de583fcee76f8791cff12e0c9440ad-dirty
$ kubectl version

Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-10T03:03:57Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:09:08Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
# the proxy is working
$ curl -I localhost:8001   

HTTP/1.1 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Thu, 26 Dec 2019 08:34:18 GMT
$ docker run -it --rm --net=host hjacobs/kube-ops-view

INFO:kube_ops_view.main:Listening on :8080..
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
INFO:kube_ops_view.update:Discovered new cluster localhost:8001 (http://localhost:8001/).
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query node metrics localhost:8001: 404 Not Found
WARNING:kube_ops_view.kubernetes:Failed to query pod metrics for cluster localhost:8001: 404 Not Found

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants