Configuration Prometheus data in ElasticSearch via Metricbeats

Unfortunately I can't help more because I don't have access to your environment.

But if you cannot connect from outside the pod, and it works when testing from inside the pod, it's clearly a issue outside Metricbeat and related to you Kubernetes environment. You'll have to find out why Kubernetes is not routing the traffic to this port on the container.