<p>I noticed that the amount of consumed resources claimed by the <code>top pods -A</code> command does not match the one shown by the <code>top node</code> one (intended as the sum of pods on a specific node).</p>
<p>In the specific, for a single node I see a difference of about 1Gi in memory consumption, which to me it is quite a lot.
I also tried to query directly the results from the metrics API, which confirms the difference.</p>
<p>Does anyone know why and how could it be possible? Does the <code>top node</code> command account also for not running resources? If so, why?</p>
<p>My cluster is running on an Azure AKS managed instance, and I see the same problem both on Linux and Windows nodes.</p>

Neo
<p><code>kubectl top node</code>: It displays resource (CPU/Memory/Storage) usage of nodes.</p>
<p>Basically, reserve a portion of the CPU and memory resources for use by the underlying node components such as kubelet, kube-proxy, and the container engine. And it reserves that portion in the first time when you configured the node, then that node divides those memory to the pods or k8s resources according to need.</p>
<p>You can see this <a href="https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable" rel="nofollow noreferrer">doc</a> for more info.</p>
