Eureka default zone setting is not picked up when used in application.yaml

95 views Asked by At

springBootVersion = '2.7.5'

My application is a Eureka Client

Eureka propeties in application.yaml looks like

application.yaml

I have added restTemplate beans with and without loadbalancer like below

bean config

The external API I am consuming is registered in a registry which is accessed via credentials, I am loading these credentials from vault during application booting.

Also the external API has a base url, for example https://ABC-V2.

My understanding is when the application starts, this base url is automatically mapped to the eureka.client.service-url.defaultZone. But my API call fails with the exception,

2023-11-21 21:59:14,556 [main] WARN o.s.c.l.core.RoundRobinLoadBalancer - No instances available for ABC-V2

How to resolve this issue? any alternative I could try to migrate this into spring load balancer?

0

There are 0 answers