summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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: