From d3161e0028ce29734bc8e90452b2ae7993de10c0 Mon Sep 17 00:00:00 2001 From: Markus Ofterdinger Date: Wed, 16 Oct 2024 10:26:32 +0200 Subject: [PATCH 1/3] Enable health propbes for Cloudfoundry or Kubernetes --- srv/src/main/resources/application.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/srv/src/main/resources/application.yaml b/srv/src/main/resources/application.yaml index dad875b3..6766721d 100644 --- a/srv/src/main/resources/application.yaml +++ b/srv/src/main/resources/application.yaml @@ -28,6 +28,7 @@ management: health: show-components: always show-details: always + probes.enabled: true endpoints: web: exposure: From ad061e411b986c9dda64d9d7566ed32fff6c9834 Mon Sep 17 00:00:00 2001 From: Markus Ofterdinger Date: Wed, 16 Oct 2024 10:46:19 +0200 Subject: [PATCH 2/3] Configure liveness and readyness checks. --- mta-multi-tenant.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mta-multi-tenant.yaml b/mta-multi-tenant.yaml index 3f5a1853..c1bb048b 100644 --- a/mta-multi-tenant.yaml +++ b/mta-multi-tenant.yaml @@ -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: "-" From 233e03bf0b6e53fb9e9385d32b0c5e660ed43d73 Mon Sep 17 00:00:00 2001 From: Markus Ofterdinger Date: Wed, 16 Oct 2024 10:48:16 +0200 Subject: [PATCH 3/3] Also single tenant setup. --- mta-single-tenant.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mta-single-tenant.yaml b/mta-single-tenant.yaml index 16f5f133..9ecf84a7 100644 --- a/mta-single-tenant.yaml +++ b/mta-single-tenant.yaml @@ -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']"