New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document using the same port for the management server on Cloud Foundry #15640
Comments
According to the Cloud Foundry documentation If you want to access actuator URLs using standard CF routes then try removing the You should then be able to hit the actuator via |
Since only a single port is routable through the go-router on CF (by default at least), we can document that |
Okay, but are the requests supposed to be redirected to |
That is not related to CloudFoundry. You have an empty I'm going to convert this to a documentation issue to document using the same port for the management server for a CF deployment. If you have any more questions, please ask on StackOverflow or join us on Gitter. |
@philwebb Can I please request you to share the link of the documentation? |
@mbhave What might the issue be in this case? IMO, it should not fall back to an empty |
@milindsonawane The documentation is here: https://docs.run.pivotal.io/devguide/deploy-apps/environment-variable.html. It's the first result (for me at least) when Googling for "CloudFoundry CF_INSTANCE_PORT". |
use |
@dilipmighty245 |
I have deployed my spring boot application on PCF; all the actuator endpoints have been exposed. The actuator endpoints are configured as:
On hitting the
/actuator/**
or/actuator
, the requests are redirected to/
endpoint. This was verified by creating an endpoint in the controller. While the application worked perfectly on local environment, it failed on PCF (have not tried this in other env). If we add any actuator endpoint in a controller, it works smoothly. For example, I added/actuator/health
is added in a controller and all the request for health endpoint were redirected to this endpoint within my controller.The spring boot version is
2.0.5
and the spring cloud dependencies are managed underFinchley.SR1
.Here's the code link.
The text was updated successfully, but these errors were encountered: