diff options
Diffstat (limited to 'certService')
-rw-r--r-- | certService/README.md | 17 | ||||
-rw-r--r-- | certService/pom.xml | 6 | ||||
-rw-r--r-- | certService/src/main/resources/application.properties | 3 |
3 files changed, 25 insertions, 1 deletions
diff --git a/certService/README.md b/certService/README.md index 72660cdc..04d78431 100644 --- a/certService/README.md +++ b/certService/README.md @@ -30,4 +30,19 @@ docker run -p 8080:8080 --name cert-service cert-service ``` - + +### Health Check + Browser: + + ``` + http://<localhost>:8080/actuator/health + + ``` + + Curl: + + ``` + curl localhost:8080/actuator/health + + ``` + Should return {"status":"UP"} diff --git a/certService/pom.xml b/certService/pom.xml index b5410e5c..21d212f1 100644 --- a/certService/pom.xml +++ b/certService/pom.xml @@ -36,6 +36,7 @@ <spring-boot-starter.version>2.2.4.RELEASE</spring-boot-starter.version> <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version> <maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version> + <spring-boot-starter-actuator.version>2.2.4.RELEASE</spring-boot-starter-actuator.version> </properties> <dependencyManagement> @@ -81,6 +82,11 @@ <version>${assertj-core.version}</version> <scope>test</scope> </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + <version>${spring-boot-starter-actuator.version}</version> + </dependency> </dependencies> <build> diff --git a/certService/src/main/resources/application.properties b/certService/src/main/resources/application.properties index e69de29b..43f65f09 100644 --- a/certService/src/main/resources/application.properties +++ b/certService/src/main/resources/application.properties @@ -0,0 +1,3 @@ +#Actuator properties +management.endpoints.enabled-by-default=false +management.endpoint.health.enabled=true
\ No newline at end of file |