Skip to content

Commit 3ebeee1

Browse files
committed
fix(sys): fix /health-check -> /healthz
1 parent 706de27 commit 3ebeee1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/system-server/src/handler/router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ router.use('/apps/:appid/dbm', checkAppid, DbmRouter)
2727
router.use('/apps/:appid/deploy', checkAppid, DeployRouter)
2828
router.use('/apps/:appid/oss', checkAppid, OSSRouter)
2929

30-
router.use('/health-check', (_req, res) => {
30+
router.use('/healthz', (_req, res) => {
3131
if (!DatabaseAgent.sys_accessor.db) {
3232
return res.status(400).send('no db connection')
3333
}

packages/system-server/src/support/service-kubernetes-driver.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class KubernetesServiceDriver implements ServiceDriverInterface {
160160
},
161161
startupProbe: {
162162
httpGet: {
163-
path: '/health-check',
163+
path: '/healthz',
164164
port: 'http',
165165
httpHeaders: [{ name: 'Referer', value: 'startupProbe' }]
166166
},
@@ -171,7 +171,7 @@ export class KubernetesServiceDriver implements ServiceDriverInterface {
171171
},
172172
readinessProbe: {
173173
httpGet: {
174-
path: '/health-check',
174+
path: '/healthz',
175175
port: 'http',
176176
httpHeaders: [{ name: 'Referer', value: 'readinessProbe' }]
177177
},

0 commit comments

Comments
 (0)