diff options
author | 2020-11-06 16:45:55 +0000 | |
---|---|---|
committer | 2020-11-06 16:45:55 +0000 | |
commit | d973fb80ac3775187e619039ee28fcb82a82d339 (patch) | |
tree | 40c72e05d6da24f5d6d9debdd293cdc79f519c19 | |
parent | 679f2d38269e9e23fc081739cfd07e28dae80fc5 (diff) | |
parent | f4d1c984c6bb290c4bb58001231a1cfefac002cc (diff) |
Merge "Spring Boot Actuator enabled on /manage" into cps_poc
-rw-r--r-- | cps/cps-parent/pom.xml | 1 | ||||
-rw-r--r-- | cps/cps-rest/pom.xml | 4 | ||||
-rw-r--r-- | cps/cps-rest/src/main/resources/application.yml | 12 |
3 files changed, 17 insertions, 0 deletions
diff --git a/cps/cps-parent/pom.xml b/cps/cps-parent/pom.xml index 04f423caa..0fe2e101a 100644 --- a/cps/cps-parent/pom.xml +++ b/cps/cps-parent/pom.xml @@ -70,6 +70,7 @@ <executions> <execution> <goals> + <goal>build-info</goal> <goal>repackage</goal> </goals> </execution> diff --git a/cps/cps-rest/pom.xml b/cps/cps-rest/pom.xml index 46f941ca3..4f8746a36 100644 --- a/cps/cps-rest/pom.xml +++ b/cps/cps-rest/pom.xml @@ -35,6 +35,10 @@ <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+ <dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
diff --git a/cps/cps-rest/src/main/resources/application.yml b/cps/cps-rest/src/main/resources/application.yml index 545faafc3..e8af0bcfb 100644 --- a/cps/cps-rest/src/main/resources/application.yml +++ b/cps/cps-rest/src/main/resources/application.yml @@ -22,6 +22,18 @@ spring: driverClassName: org.postgresql.Driver
initialization-mode: always
+# Actuator
+management:
+ endpoints:
+ web:
+ base-path: /manage
+ endpoint:
+ health:
+ show-details: always
+ # kubernetes probes: liveness and readiness
+ probes:
+ enabled: true
+
logging:
level:
org:
|