I didn\'t expose any port in kubernetes/docker but i\'m still able to connect to python app from another pod.
Here is the Dockerfile
FROM python:3.6.8 . .