From b62b3585debe85b254a7c89fe6cea8dae8804b80 Mon Sep 17 00:00:00 2001 From: lindtvedtsebastian <46536611+lindtvedtsebastian@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:51:24 +0200 Subject: [PATCH] chore(health): default health endpoints (#1605) --- backend/helm/backend/values.yaml | 1 - backend/src/main.rs | 2 +- next-tavla/app/{health => actuator/health/liveness}/route.ts | 0 next-tavla/helm/tavla/values.yaml | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) rename next-tavla/app/{health => actuator/health/liveness}/route.ts (100%) diff --git a/backend/helm/backend/values.yaml b/backend/helm/backend/values.yaml index 19e09a13c..5c093d59c 100644 --- a/backend/helm/backend/values.yaml +++ b/backend/helm/backend/values.yaml @@ -37,7 +37,6 @@ common: periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 - path: "/health" readinessProbe: tcpSocket: port: 3000 diff --git a/backend/src/main.rs b/backend/src/main.rs index 8d382dd07..f96fc9154 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -61,7 +61,7 @@ async fn main() { .route("/subscribe/:bid", get(subscribe)) .route("/refresh/:bid", post(trigger)) .route("/update", post(update)) - .route("/health", get(check_health)) + .route("/actuator/health/liveness", get(check_health)) .route("/reset", post(reset_active)) .with_state(redis_clients) .layer(cors); diff --git a/next-tavla/app/health/route.ts b/next-tavla/app/actuator/health/liveness/route.ts similarity index 100% rename from next-tavla/app/health/route.ts rename to next-tavla/app/actuator/health/liveness/route.ts diff --git a/next-tavla/helm/tavla/values.yaml b/next-tavla/helm/tavla/values.yaml index 4c3c1acdd..da04ddf32 100644 --- a/next-tavla/helm/tavla/values.yaml +++ b/next-tavla/helm/tavla/values.yaml @@ -32,7 +32,6 @@ common: periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 - path: '/health' readinessProbe: tcpSocket: port: 3000