Kubernetes 1.11 could not find heapster for metrics

FakeAccount picture FakeAccount · Oct 17, 2018 · Viewed 12.6k times · Source

I'm using Kubernetes 1.11 on Digital Ocean, when I try to use kubectl top node I get this error:

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

but as stated in the doc, heapster is deprecated and no longer required from kubernetes 1.10

Answer

Rico picture Rico · Oct 17, 2018

For kubectl top node/pod to work you either need the heapster or the metrics server installed on your cluster.

Like the warning says: heapster is being deprecated so the recommended choice now is the metrics server.

So follow the directions here to install the metrics server