Score:0

K8s ( on eks ) access pod with hostNetwork: true from another pod

pf flag

I'm installing metricbeat ( deployed using this manifest file ) on my eks cluster.
In order to monitor also some other metrics ( such as traefik and HPA ) i added Prometheus with remote_write enabled, and i've enabled the remote_write metricset on metricbeat.
If I then login into the prometheus pod and i try to connect to the Node address ( because metricbeat has hostNetwork:true) on port 9201 i always get a connection refused.
Strangely if i create a service that points to the pods and i use kubectl port-forward and send a request to the service i correctly get into the metricbeat service

in flag
Please [edit your question](https://serverfault.com/posts/1081265/edit) and include the troubleshooting steps you have already taken (along with their results), since this could fail for any number of reasons, and your troubleshooting steps will help reduce the back-and-forth over the Internet
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.