How to get the pod's memory by typing "free -m" in pod

Kubernetes version: 1.14
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: kubectl
Host OS: Linux/Centos 7+

Hello,

When I type “free -m” in pod, it shows node’s memory.

For example:
In pod.yml
resources:
requests:
cpu:500m
memory: 1024Mi
limits:
cpu:1000m
memory: 8192Mi

What I expect:
[root@pod1 ~]# free -m
total used free
Mem: 8192 1024 7168
Swap: 0 0 0

What I get:
[root@pod1 ~]# free -m
total used free
Mem: 32768 1024 31744
Swap: 0 0 0

How can I get the right “free -m”?
Thanks for your answer.