Skip to content

Commit aad5826

Browse files
committed
fix(apps/chat): add dedicated healthcheck endpoint
1 parent e642b71 commit aad5826

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { NextResponse } from 'next/server'
2+
3+
export async function GET() {
4+
return NextResponse.json(
5+
{
6+
status: 'OK',
7+
timestamp: new Date().toISOString(),
8+
},
9+
{ status: 200 }
10+
)
11+
}

deploy/charts/klicker-uzh-v2/templates/deployment-chat.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ spec:
5656
name: {{ include "chart.fullname" . }}-secret-chat
5757
livenessProbe:
5858
httpGet:
59-
path: /
59+
path: /api/health
6060
port: http
6161
readinessProbe:
6262
httpGet:
63-
path: /
63+
path: /api/health
6464
port: http
6565
resources:
6666
{{- toYaml .Values.chat.resources | nindent 12 }}

0 commit comments

Comments
 (0)