I'm trying to achieve a discovery first spring cloud config mode. This is my client bootstrap.yml
server: port: 9090 spring: application: name: test-config cloud: config: fail-fast: true discovery: enabled: true serviceId: configservice eureka: client: register-with-eureka: true serviceUrl.defaultZone: http://localhost:8011/eureka/
The configuration is fetched ok, the client starts but is not registered with eureka
So when I look at the eureka dashboard i see only the config service not the client app. The documentation does not state explicitly that this does not work(if I understand it correctly).
Is this on purpose? Is this a bug? Is there a possibility to achieve this setup?
Does your main class include: @EnableEurekaClient
?
Could you verify your yml
properties are properly spaced?