From 1b782a35fed0d4d81fc27214328d0d288ec3dbb2 Mon Sep 17 00:00:00 2001 From: lindtvedtsebastian Date: Thu, 1 Aug 2024 09:28:17 +0200 Subject: [PATCH] feat(frontend): add health endpoints --- backend/helm/backend/values.yaml | 2 +- next-tavla/app/health/route.ts | 5 +++++ next-tavla/helm/tavla/values.yaml | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 next-tavla/app/health/route.ts diff --git a/backend/helm/backend/values.yaml b/backend/helm/backend/values.yaml index 72bb8bc32..19e09a13c 100644 --- a/backend/helm/backend/values.yaml +++ b/backend/helm/backend/values.yaml @@ -37,7 +37,7 @@ common: periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 - path: /health + path: "/health" readinessProbe: tcpSocket: port: 3000 diff --git a/next-tavla/app/health/route.ts b/next-tavla/app/health/route.ts new file mode 100644 index 000000000..4a9d31efd --- /dev/null +++ b/next-tavla/app/health/route.ts @@ -0,0 +1,5 @@ +import { NextResponse } from 'next/server' + +export function GET() { + return NextResponse.json({ status: 'OK' }) +} diff --git a/next-tavla/helm/tavla/values.yaml b/next-tavla/helm/tavla/values.yaml index da04ddf32..4c3c1acdd 100644 --- a/next-tavla/helm/tavla/values.yaml +++ b/next-tavla/helm/tavla/values.yaml @@ -32,6 +32,7 @@ common: periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 + path: '/health' readinessProbe: tcpSocket: port: 3000