question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

f8-spring-boot-health-check ignores management context-path

See original GitHub issue

Description

f8-spring-boot-health-check produces probe but ignores the context-path.

It produces:

[INFO] F8: spring-boot-health-check: Adding readiness probe on port 8080, path='/health', scheme='HTTP', with initial delay 10 seconds
[INFO] F8: spring-boot-health-check: Adding liveness probe on port 8080, path='/health', scheme='HTTP', with initial delay 180 seconds

Whereas it must produce:

[INFO] F8: spring-boot-health-check: Adding readiness probe on port 8080, path='/management/health', scheme='HTTP', with initial delay 10 seconds
[INFO] F8: spring-boot-health-check: Adding liveness probe on port 8080, path='/management/health', scheme='HTTP', with initial delay 180 seconds

Info

  • f-m-p version : 3.5.22
  • Maven version (mvn -v) :
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T19:39:06Z)
Maven home: /home/jhipster/.m2/wrapper/dists/apache-maven-3.5.0-bin/6ps54u5pnnbbpr6ds9rppcc7iv/apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.9.36-moby", arch: "amd64", family: "unix"
  • Kubernetes / OpenShift setup and version : Kubernetes 7.3

  • If it’s a bug, how to reproduce : Just clone the repo; and run the fabric8 maven plugin.

  • Sample project : [GitHub Clone URL] As you can see that management.context-path has been defined but its ignored:

https://github.com/stakater-spring-microservice/MovieManager/blob/master/src/main/resources/config/application.yml#L2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaferrarocommented, Aug 11, 2017

@hrishin I’ve created another issue for this problem (#1019).

0reactions
rohanKanojiacommented, Oct 6, 2018

Duplicate of #1019

Read more comments on GitHub >

github_iconTop Results From Across the Web

54. Monitoring and Management over HTTP - Spring
Unless the management port has been configured to expose endpoints by using a different HTTP port, management.endpoints.web.base-path is relative to server.
Read more >
fabric8io/fabric8-maven-plugin
f8 -healthcheck-spring-boot. This enricher adds kubernetes readiness and liveness probes with Spring Boot. This requires the following dependency ...
Read more >
SpringBoot adds context path to Actuator endpoints
What you could do is to use a different port for the management endpoints. management.server.port=8081. Then you will get http://localhost:8081/ ...
Read more >
Fuse on OpenShift Guide - Red Hat Customer Portal
Configure Samples operator to ignore the fuse templates and image streams that ... openshift:fuse711-spring-boot host: null [INFO] F8: HINT: Use the command ...
Read more >
Untitled
Hot springs mornington deals, Usaa mortgage rates trend, Anzics 2015 program ... Blatantly ignored meaning, Pakistan post tracking site, Laurent albouy pvh, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found