Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"kubectl top pods" requires heapster - reinstate addon? #8360

Closed
tstromberg opened this issue Jun 2, 2020 · 4 comments · Fixed by #8455
Closed

"kubectl top pods" requires heapster - reinstate addon? #8360

tstromberg opened this issue Jun 2, 2020 · 4 comments · Fixed by #8455
Assignees
Labels
area/addons kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@tstromberg
Copy link
Contributor

The heapster addon was removed some time ago due to it being deprecated. I guess it isn't deprecated enough!

kubectl top pods
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)

$ minikube addons enable heapster
💣  enable failed: run callbacks: heapster is not a valid addon

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
👉  https://github.com/kubernetes/minikube/issues/new/choose

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-26T06:16:15Z", GoVersion:"go1.14", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec
@sharifelgamal sharifelgamal added area/addons kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Jun 2, 2020
@govargo
Copy link
Contributor

govargo commented Jun 4, 2020

I think this is about kubernetes(kubectl?) issue. It is confusing output(All we need is metrics-server not heapster).
With minikube's metrics-server addon, we can get top pod & top node.

$ minikube start

$ kubectl top pods
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)

$ minikube addons enable metrics-server
🌟  The 'metrics-server' addon is enabled

(〜wait for some minutes〜)

$ kubectl top pods -n kube-system
NAME                               CPU(cores)   MEMORY(bytes)
coredns-66bff467f8-c6wwn           3m           6Mi
coredns-66bff467f8-rbwzf           4m           6Mi
etcd-minikube                      23m          27Mi
kube-apiserver-minikube            54m          256Mi
kube-controller-manager-minikube   20m          34Mi
kube-proxy-dwdwd                   0m           8Mi
kube-scheduler-minikube            4m           10Mi
metrics-server-7bc6d75975-2m29p    0m           9Mi
storage-provisioner                0m           16Mi

Or should we enable metrics-server addon as default to avoid this issue?

@tstromberg
Copy link
Contributor Author

tstromberg commented Jun 4, 2020 via email

@govargo
Copy link
Contributor

govargo commented Jun 4, 2020

I’d like to work on this issue.

Do we have similar alias addon such like this?
If there is, I'll refer to it.
If nothing, I'll try anyway.

@govargo
Copy link
Contributor

govargo commented Jun 11, 2020

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/addons kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants