Skip to content

Commit

Permalink
fix(sys): fix /health-check -> /healthz
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Apr 26, 2022
1 parent 706de27 commit 3ebeee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/system-server/src/handler/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ router.use('/apps/:appid/dbm', checkAppid, DbmRouter)
router.use('/apps/:appid/deploy', checkAppid, DeployRouter)
router.use('/apps/:appid/oss', checkAppid, OSSRouter)

router.use('/health-check', (_req, res) => {
router.use('/healthz', (_req, res) => {
if (!DatabaseAgent.sys_accessor.db) {
return res.status(400).send('no db connection')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class KubernetesServiceDriver implements ServiceDriverInterface {
},
startupProbe: {
httpGet: {
path: '/health-check',
path: '/healthz',
port: 'http',
httpHeaders: [{ name: 'Referer', value: 'startupProbe' }]
},
Expand All @@ -171,7 +171,7 @@ export class KubernetesServiceDriver implements ServiceDriverInterface {
},
readinessProbe: {
httpGet: {
path: '/health-check',
path: '/healthz',
port: 'http',
httpHeaders: [{ name: 'Referer', value: 'readinessProbe' }]
},
Expand Down

0 comments on commit 3ebeee1

Please sign in to comment.