Shared memory between pods

Hi,

About the following statement for the shared memory in the pod A and B:

        volumeMounts:
        - mountPath: /dev/shm
          name: cache-volume

I would like to confirm that I need to ensure following requirements must be true for:

  1. two pods must run within the same node.
  2. “hostIPC=true” must be defined in the pod YAML section.

Thanks.
ming