Hello!
I’m trying to get a service to find another service as follows:
- first service will have a container that executes a java image (SpringBoot) that exposes an endpoint (http: // …: 80).
- second service will have another container that executes another java image (SpringBoot) that needs to consume the endpoint of the first container.
The problem is that every time I restart the service it will throw the container away and create a new container.
It is possible to identify which endpoint the service is responding to based on the service name (whereas the service name never changes, only the container changes).
Thank you all!