Expose healthchecks for DMI stub 85/138885/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Mon, 2 Sep 2024 12:27:26 +0000 (13:27 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Mon, 2 Sep 2024 12:27:26 +0000 (13:27 +0100)
This allows using /actuator/health/readiness probe, etc.
This is part of a larger story to add healthchecks to
docker-compose used in CSITs and k6.

Issue-ID: CPS-2376
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iaf62fc935b5fa8d512deea0cac1d4008ca175bb6

dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources/application.yml

index 71bccc9..541cd6b 100644 (file)
@@ -44,6 +44,12 @@ management:
         web:
             exposure:
                 include: health
+    endpoint:
+        health:
+            show-details: always
+            # kubernetes probes: liveness and readiness
+            probes:
+                enabled: true
 
 app:
     ncmp:
@@ -63,4 +69,4 @@ logging:
             springframework:
                 web:
                     filter:
-                        CommonsRequestLoggingFilter: DEBUG
\ No newline at end of file
+                        CommonsRequestLoggingFilter: DEBUG