kubectl top node|pod

It looks like heapster is not enabled on the cluster? Is this a planned feature?

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

I’ve used the same on other cloud providers (AKS, IKS) and it seems to be enabled…

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You can easily install metrics server to your cluster via marketplace:

  • Install metrics server chart

  • Update the command metrics server deployment and add the following two options to the pod command :

      - --kubelet-insecure-tls
      - --kubelet-preferred-address-types=InternalIP

Command will be look like this :

    - /metrics-server
    - --kubelet-insecure-tls
    - --kubelet-preferred-address-types=InternalIP

Wait two or three minutes, then the “top” command should work.

You have to deploy heapster in your cluster to collect metrics ;) by default its not activated on digitalocean k8s-cluster.

There is a helm chart for heapster: