<p>I'm using Kubernetes 1.7 and I have a GPU machine in the cluster. The <code>kubectl top nodes</code> gives only CPU and Memory usage like this </p>

<pre><code>NAME       CPU(cores)   CPU%      MEMORY(bytes)   MEMORY%
machine1   183m         1%        5284Mi          8%
machine2   181m         1%        5543Mi          8%
machine3   250m         1%        7682Mi          7%
machine4   328m         5%        1578Mi          16%
</code></pre>

<p>Is there a way to get <strong>GPU usage</strong>?  </p>

Abu Shoeb
<p>I'm afraid that <code>kubectl top</code> does not provide GPU metrics, regardless if drivers are installed or not.</p>

<p>To inspect GPU statistics, I recommend using <a href="https://github.com/kubernetes/heapster/blob/master/docs/storage-schema.md" rel="nofollow noreferrer">Heapster</a> monitoring tool
and <a href="https://github.com/chhibber/pgme" rel="nofollow noreferrer">Prometheus</a> that provides the extension to get the accelerator metrics.</p>

<p>At last, you may be interested in <a href="https://developer.nvidia.com/kubernetes-gpu" rel="nofollow noreferrer">Nvidia GPU</a> works for Kubernetes and <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/gpus" rel="nofollow noreferrer">GCE</a> concepts of using this kind of hardware.</p>
