Open vchrisb opened 4 months ago
@vchrisb What versions of Cloud Foundry support application health and readiness checks? Should the health probes only be enabled automatically if the Cloud Foundry version is at a certain level?
It is supported from cf-deployment v32.2.0 or TAS 5.0.0
From a cloud foundry perspective it could be enabled always, though the readiness endpoint is only usable starting with the before mentioned version.
Recent version of cloud foundry do support in addition to an application health check also readiness check, like kubernetes does: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#readiness-health-check-type
Currently the health probes,
LivenessStateHealthIndicator
andReadinessStateHealthIndicator
are only automatically enabled in Kubernetes environments: https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.kubernetes-probesBy manually configuring
management.endpoint.health.probes.enabled=true
one can activate these probes and its corresponding endpoints,/actuator/health/liveness
and/actuator/health/readiness
, for cloud foundry health checks.The ask is, to not only activate the health probes automatically in kubernetes but also in cloud foundry environments.