Merge "Spring Boot Actuator enabled on /manage" into cps_poc
authorToine Siebelink <toine.siebelink@est.tech>
Fri, 6 Nov 2020 16:45:55 +0000 (16:45 +0000)
committerNordix Gerrit <gerrit@nordix.org>
Fri, 6 Nov 2020 16:45:55 +0000 (16:45 +0000)
cps/cps-parent/pom.xml
cps/cps-rest/pom.xml
cps/cps-rest/src/main/resources/application.yml

index 04f423c..0fe2e10 100644 (file)
@@ -70,6 +70,7 @@
                     <executions>
                         <execution>
                             <goals>
+                                <goal>build-info</goal>
                                 <goal>repackage</goal>
                             </goals>
                         </execution>
index 46f941c..4f8746a 100644 (file)
             <groupId>org.springframework.boot</groupId>\r
             <artifactId>spring-boot-starter-jetty</artifactId>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.springframework.boot</groupId>\r
+            <artifactId>spring-boot-starter-actuator</artifactId>\r
+        </dependency>\r
         <dependency>\r
             <groupId>io.swagger.core.v3</groupId>\r
             <artifactId>swagger-annotations</artifactId>\r
index 545faaf..e8af0bc 100644 (file)
@@ -22,6 +22,18 @@ spring:
         driverClassName: org.postgresql.Driver\r
         initialization-mode: always\r
 \r
+# Actuator\r
+management:\r
+    endpoints:\r
+        web:\r
+            base-path: /manage\r
+    endpoint:\r
+        health:\r
+            show-details: always\r
+            # kubernetes probes: liveness and readiness\r
+            probes:\r
+                enabled: true\r
+\r
 logging:\r
     level:\r
         org:\r