Cannot prevent my service from registering with Eureka

Viewed 2137

I have a Spring Boot application with the following config:

eureka:
  client:
    enabled: true
    registerWithEureka: false
    serviceUrl:
      defaultZone: http://somehost:9999/eureka/
  registration:
    enabled: false

My service makes use of Eureka to discover external services, but I don't want it to register with Eureka. Despite the above config I still see the following in my logs, which is odd:

DiscoveryClient - Not registering with Eureka server per configuration
...
EurekaServiceRegistry - Registering application foo with eureka with status UP

The first log line makes sense - it's what I want. However, the second log line doesn't make sense given the config. Am I missing a setting?

1 Answers
Related