From a41d106f1e9dd42622a27016a4b1d69ed580affe Mon Sep 17 00:00:00 2001 From: Alper Date: Fri, 9 Aug 2024 14:07:10 +0300 Subject: [PATCH 1/2] health endpoints --- .../charts/sustainable-saas/charts/susaas-api/values.yaml | 4 ++-- .../charts/sustainable-saas/charts/susaas-srv/values.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/kyma/charts/sustainable-saas/charts/susaas-api/values.yaml b/deploy/kyma/charts/sustainable-saas/charts/susaas-api/values.yaml index 767f09b..93669d7 100644 --- a/deploy/kyma/charts/sustainable-saas/charts/susaas-api/values.yaml +++ b/deploy/kyma/charts/sustainable-saas/charts/susaas-api/values.yaml @@ -31,9 +31,9 @@ hpa: # Horizontal Pod Autoscaler health_check: liveness: - path: /healthz + path: /health readiness: - path: /healthz + path: /health securityContext: user: diff --git a/deploy/kyma/charts/sustainable-saas/charts/susaas-srv/values.yaml b/deploy/kyma/charts/sustainable-saas/charts/susaas-srv/values.yaml index bd2ce8d..d556833 100644 --- a/deploy/kyma/charts/sustainable-saas/charts/susaas-srv/values.yaml +++ b/deploy/kyma/charts/sustainable-saas/charts/susaas-srv/values.yaml @@ -44,9 +44,9 @@ hpa: health_check: liveness: - path: /healthz + path: /health readiness: - path: /healthz + path: /health securityContext: user: From 36bf019110541ffbcdbb92ebe175e1da899f34f3 Mon Sep 17 00:00:00 2001 From: Alper Date: Fri, 9 Aug 2024 14:07:29 +0300 Subject: [PATCH 2/2] health endpoints --- code/api/srv/server.js | 1 - code/srv/srv/server.js | 1 - deploy/cf/mta.yaml | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/code/api/srv/server.js b/code/api/srv/server.js index 2244502..9c9177f 100644 --- a/code/api/srv/server.js +++ b/code/api/srv/server.js @@ -2,7 +2,6 @@ import cds from '@sap/cds'; import express from 'express'; cds.on('bootstrap', async (app) => { - app.get('/healthz', (_, res) => { res.status(200).send('OK') }) app.use(express.json({ limit: '50MB' })) }); diff --git a/code/srv/srv/server.js b/code/srv/srv/server.js index 1cbdcbf..783917e 100644 --- a/code/srv/srv/server.js +++ b/code/srv/srv/server.js @@ -4,7 +4,6 @@ import ProvisioningService from './provisioning.js' import xsenv from '@sap/xsenv' cds.on('bootstrap', async (app) => { - app.get('/healthz', (_, res) => res.status(200).send('OK')); app.use(cov2ap()); // Workaround to be removed for common db deployment on Kyma scenario. diff --git a/deploy/cf/mta.yaml b/deploy/cf/mta.yaml index 61167b7..b194712 100644 --- a/deploy/cf/mta.yaml +++ b/deploy/cf/mta.yaml @@ -156,7 +156,7 @@ modules: disk-quota: 1024MB command: node ./node_modules/@sap/cds/bin/cds-serve health-check-type: http - health-check-http-endpoint: /healthz + health-check-http-endpoint: /health health-check-timeout: 180 # timeout at startup health-check-invocation-timeout: 180 # timeout for polling properties: