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

<pre><code>Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
</code></pre>

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

FakeAccount
<p>If you are running a newer version of Kubernetes and still receiving this error, there is probably a problem with your installation.</p>

<p>Please note that to install metrics server on kubernetes, you should first clone it by typing:</p>

<pre><code>git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
</code></pre>

<p>then you should install it, <strong>WITHOUT GOING INTO THE CREATED FOLDER AND WITHOUT MENTIONING AN SPECIFIC YAML FILE</strong> , only via:</p>

<pre><code>kubectl create -f kubernetes-metrics-server/
</code></pre>

<p>In this way all services and components are installed correctly and you can run:</p>

<pre><code>kubectl top nodes
</code></pre>

<p>or </p>

<pre><code>kubectl top pods
</code></pre>

<p>and get the correct result.</p>
