Consider these two commands run against my cluster.
First roll up all known used ram as reported by top nodes:
$ kubectl --no-headers=true top nodes | awk 'BEGIN { total=0 } { total+=$4 } END { print total, "Mi" }'
504972 Mi
Then by all pods in top pods
phs@anvil:~$ kubectl --no-headers=true --all-namespaces=true top pods | awk 'BEGIN { total=0 } { total+=$4 } END { print total, "Mi" }'
163503 Mi
I've already confirmed that all living pods appear in top pods.
What is with the huge discrepancy? Where does the extra ram go?