From f4d1c984c6bb290c4bb58001231a1cfefac002cc Mon Sep 17 00:00:00 2001 From: Ruslan Kashapov Date: Thu, 29 Oct 2020 11:39:31 +0200 Subject: [PATCH] Spring Boot Actuator enabled on /manage Change-Id: I39970e920ae9b10aed038bc3da7a59b2ae370cf2 Issue-ID: CPS-16 JIRA: https://jira.onap.org/browse/CPS-16 Signed-off-by: Ruslan Kashapov --- cps/cps-parent/pom.xml | 1 + cps/cps-rest/pom.xml | 4 ++++ cps/cps-rest/src/main/resources/application.yml | 12 ++++++++++++ 3 files changed, 17 insertions(+) diff --git a/cps/cps-parent/pom.xml b/cps/cps-parent/pom.xml index 2ddb2b6683..4984b61942 100644 --- a/cps/cps-parent/pom.xml +++ b/cps/cps-parent/pom.xml @@ -73,6 +73,7 @@ + build-info repackage diff --git a/cps/cps-rest/pom.xml b/cps/cps-rest/pom.xml index f9be75b7e3..2d125803d4 100644 --- a/cps/cps-rest/pom.xml +++ b/cps/cps-rest/pom.xml @@ -34,6 +34,10 @@ org.springframework.boot spring-boot-starter-jetty + + org.springframework.boot + spring-boot-starter-actuator + io.swagger.core.v3 swagger-annotations diff --git a/cps/cps-rest/src/main/resources/application.yml b/cps/cps-rest/src/main/resources/application.yml index 8e2aee043c..84f3f79cda 100644 --- a/cps/cps-rest/src/main/resources/application.yml +++ b/cps/cps-rest/src/main/resources/application.yml @@ -24,6 +24,18 @@ spring: jersey: type: filter +# Actuator +management: + endpoints: + web: + base-path: /manage + endpoint: + health: + show-details: always + # kubernetes probes: liveness and readiness + probes: + enabled: true + logging: level: org: -- 2.16.6