Skip to content

Commit

Permalink
Demonstrate Spring-Boot health probes in Cloudfoundry (#380)
Browse files Browse the repository at this point in the history
This PR demonstrates the liveness and readiness health probes in
Cloudfoundry as described here:
https://docs.cloudfoundry.org/devguide/deploy-apps/healthchecks.html
  • Loading branch information
mofterdinger authored Nov 25, 2024
1 parent 43ff622 commit 49ed638
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mta-multi-tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ modules:
memory: 1024M
disk-quota: 512M
buildpack: sap_java_buildpack_jakarta
health-check-type: http
health-check-http-endpoint: /actuator/health/liveness
readiness-health-check-type: http
readiness-health-check-http-endpoint: /actuator/health/readiness
properties:
SPRING_PROFILES_ACTIVE: cloud,sandbox
CDS_MULTITENANCY_APPUI_TENANTSEPARATOR: "-"
Expand Down
4 changes: 4 additions & 0 deletions mta-single-tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ modules:
memory: 1024M
disk-quota: 512M
buildpack: sap_java_buildpack_jakarta
health-check-type: http
health-check-http-endpoint: /actuator/health/liveness
readiness-health-check-type: http
readiness-health-check-http-endpoint: /actuator/health/readiness
properties:
SPRING_PROFILES_ACTIVE: cloud,sandbox
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
Expand Down
1 change: 1 addition & 0 deletions srv/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ management:
health:
show-components: always
show-details: always
probes.enabled: true
endpoints:
web:
exposure:
Expand Down

0 comments on commit 49ed638

Please sign in to comment.