in kubernetes all pods should have an ip adress inside the local network of the cluster
and each pods should be able to communicate to ohter pods if there is no specific configuration
even if there are inside the same node
only if you manage the cluster with a network manager like flannel
if you use a cni this will automaticly create the network conf for the pod if not you have to do it manualy