Skip to content

Document using the same port for the management server on Cloud Foundry #15640

@milindsonawane

Description

@milindsonawane

I have deployed my spring boot application on PCF; all the actuator endpoints have been exposed. The actuator endpoints are configured as:

management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
management.server.port=${CF_INSTANCE_PORT}

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 under Finchley.SR1.

Here's the code link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions