Skip to content

Commit

Permalink
making sure spring-boot-admin can manage the eureka-sever and ignores…
Browse files Browse the repository at this point in the history
… itself
  • Loading branch information
altfatterz committed May 15, 2018
1 parent 020b096 commit a3e6320
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
7 changes: 6 additions & 1 deletion eureka-server/pom.xml
Expand Up @@ -33,7 +33,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>


<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
Expand Down
15 changes: 13 additions & 2 deletions eureka-server/src/main/resources/application.yml
Expand Up @@ -11,6 +11,17 @@ spring:

# by default every Eureka Server is also an Eureka Client and requires (at least one) service URL to locate a peer.
eureka:
instance:
metadata-map:
user.name: ${spring.security.user.name}
user.password: ${spring.security.user.password}
client:
register-with-eureka: false
fetch-registry: false
service-url:
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@localhost:8761/eureka/

management:
endpoints:
web.exposure.include: "*"
endpoint:
health:
show-details: ALWAYS
9 changes: 4 additions & 5 deletions spring-boot-admin/src/main/resources/application.yml
Expand Up @@ -7,13 +7,12 @@ spring:
user:
name: admin
password: password
boot:
admin:
discovery:
ignored-services: spring-boot-admin

eureka:
instance:
metadata-map:
user.name: ${spring.security.user.name}
user.password: ${spring.security.user.password}

client:
service-url:
defaultZone: http://eureka:password@localhost:8761/eureka/

0 comments on commit a3e6320

Please sign in to comment.