Hello.
I tried to open this feature request also in https://github.com/Netflix/eureka/issues/1591, but with no luck. Maybe it could be implemented in/by Spring bypassing some of the Eureka internals from Netflix. :)
Basically, I've a Eureka server deployed in OpenShift, but there is no (or, I didn't find it) way to use an headless service
as DNS so that the list of servers may be derived dynamically and refreshed periodically instead of to have the static configuration suggested in the docs regarding the peer awareness.
Of course, it would be great if such a DNS mechanism would be supported like other libraries, e.g.: Hazelcast, do transparently already without even knowing it's an headless service in OCP.
During my short debugging to open https://github.com/Netflix/eureka/issues/1591, I found out that's actually not really possible because the Netflix Eureka library defaults automatically to an AWS setup where the DNS must also include the region and the datacenter.
Any idea if this would be achievable here?
I would like to have an HPA in place for my server, but with the static configuration it would be useless.
Kind regards and thanks.
Comment From: cdprete
/cc @OlgaMaciaszek @spencergibb maybe you can provide some guidance :)
Comment From: spencergibb
Not as part of eureka. This is fairly close to what you're asking, but it is not a priority https://github.com/spring-cloud/spring-cloud-commons/issues/604