I explain my case.
I have three pods running in my Kubernetes. In one pod, there is a Flask framework running. In the two other pods, there is a Java application with a REST API. ( The Java application is the same on the two pods ).
My pod with Flask has to ask the two pods with the Java application individually using HTTP requests.
I have created a service that points toward my two pods with Java Application. When my pod with Flask uses the service to ask the two others, I just have one response.
How could I target my pods individually ? Is it possible in my case to get endpoints from the pod with Flask ? I could have x pods with my Java Application.
Best regards,
Nico.