Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health endpoints #50

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion code/api/srv/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }))
});

Expand Down
1 change: 0 additions & 1 deletion code/srv/srv/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion deploy/cf/mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ hpa: # Horizontal Pod Autoscaler

health_check:
liveness:
path: /healthz
path: /health
readiness:
path: /healthz
path: /health

securityContext:
user:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ hpa:

health_check:
liveness:
path: /healthz
path: /health
readiness:
path: /healthz
path: /health

securityContext:
user:
Expand Down