Reputation: 949
I am unable to conjure up a property to change the heartbeat and discovery context for the Eureka server from the ConfigBeans located in github: https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka
Seems I'm able to set the context path within the client, but not the server. For example, with a client configured as:
eureka:
instance:
statusPageUrlPath: /admin/info
healthCheckUrlPath: /admin/health
homePageUrlPath: /admin/dashboard
client:
registerWithEureka: false
fetchRegistry: false
eurekaServerUrlContext: /admin
serviceUrl:
defaultZone: http://localhost:8761/admin/eureka/
server:
waitTimeInMsWhenSyncEmpty: 0
dashboard:
path: /admin/dashboard
There seems to be nothing in EurekaServerConfigBean
for me to modify on the server to change the context to /admin
. When I run my clients, I get:
2015-07-23 12:18:32.069 ERROR 18894 --- [pool-7-thread-1] com.netflix.discovery.DiscoveryClient : Can't get a response from http://localhost:8761/admin/eureka/apps/
Can't contact any eureka nodes - possibly a security group issue?
Upvotes: 2
Views: 3813
Reputation: 949
So @spencergibb clued me into a test which required the following config within the Eureka Server application.yml:
server.contextPath: /admin
And that did it. I was overthinking that it was a eureka.server setting.
Upvotes: 3