A node contains one or more pods, and each pod contains one or more containers.
The oc get pods command with the -o yaml option can be used to determine how much memory (RAM) has been allocated for the pod.
oc get pod/pod001 -o yaml
Something like this should be returned. In this example, the pod has 512 MB of memory allocated.
spec: containers: - env: resources: requests: memory: 512Mi
The oc exec command can be used to get the real time memory usage in bytes of the pod.
oc exec pod001 -- cat /sys/fs/cgroup/memory/memory.usage_in_bytes
Something like this should be returned. In this example, the pod is currently using 568414208 bytes of memory (568 MB).
The oc edit command can be used to change the amount of memory the pod has allocated.
oc edit pod/pod001
After this change has been made, you will want to restart the pod (scale down, then up) for this change to take effect.