summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2020-11-06 16:45:55 +0000
committerNordix Gerrit <gerrit@nordix.org>2020-11-06 16:45:55 +0000
commitd973fb80ac3775187e619039ee28fcb82a82d339 (patch)
tree40c72e05d6da24f5d6d9debdd293cdc79f519c19
parent679f2d38269e9e23fc081739cfd07e28dae80fc5 (diff)
parentf4d1c984c6bb290c4bb58001231a1cfefac002cc (diff)
Merge "Spring Boot Actuator enabled on /manage" into cps_poc
-rw-r--r--cps/cps-parent/pom.xml1
-rw-r--r--cps/cps-rest/pom.xml4
-rw-r--r--cps/cps-rest/src/main/resources/application.yml12
3 files changed, 17 insertions, 0 deletions
diff --git a/cps/cps-parent/pom.xml b/cps/cps-parent/pom.xml
index 04f423caa2..0fe2e101a5 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 46f941ca37..4f8746a366 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 545faafc37..e8af0bcfb2 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: