From fdda45da279dcf5fc2161c70015bb1aba1a94ba4 Mon Sep 17 00:00:00 2001 From: vigdorov Date: Wed, 31 Dec 2025 10:16:06 +0300 Subject: [PATCH] fix health check --- backend/Dockerfile | 2 +- k8s/backend-deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 7a41a77..48d9524 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -42,7 +42,7 @@ EXPOSE 4001 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=40s \ - CMD node -e "require('http').get('http://localhost:4001/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" + CMD node -e "require('http').get('http://localhost:4001/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" # Start the application CMD ["node", "dist/main"] diff --git a/k8s/backend-deployment.yaml b/k8s/backend-deployment.yaml index ced7cdc..568390c 100644 --- a/k8s/backend-deployment.yaml +++ b/k8s/backend-deployment.yaml @@ -52,13 +52,13 @@ spec: cpu: "500m" livenessProbe: httpGet: - path: /health + path: /api/health port: 4001 initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: - path: /health + path: /api/health port: 4001 initialDelaySeconds: 10 periodSeconds: 5