From cdd111036a453674482033f46cf16167cf2fdb8f Mon Sep 17 00:00:00 2001 From: sljeff Date: Tue, 25 Apr 2023 10:49:57 +0800 Subject: [PATCH] chore: health check deploy --- deploy/dev/sts.yaml | 5 +++-- deploy/prod/deploy.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy/dev/sts.yaml b/deploy/dev/sts.yaml index 53171c82..e4df3f35 100644 --- a/deploy/dev/sts.yaml +++ b/deploy/dev/sts.yaml @@ -48,10 +48,11 @@ spec: terminationMessagePath: /dev/termination-log terminationMessagePolicy: File readinessProbe: - tcpSocket: + httpGet: + path: /api/healthcheck port: 3000 initialDelaySeconds: 40 - periodSeconds: 10 + periodSeconds: 20 livenessProbe: tcpSocket: port: 3000 diff --git a/deploy/prod/deploy.yaml b/deploy/prod/deploy.yaml index 1cd7d1f5..f8b40810 100644 --- a/deploy/prod/deploy.yaml +++ b/deploy/prod/deploy.yaml @@ -64,10 +64,11 @@ spec: - name: xlog-image mountPath: /app/.next/cache/images readinessProbe: - tcpSocket: + httpGet: + path: /api/healthcheck port: 3000 initialDelaySeconds: 40 - periodSeconds: 10 + periodSeconds: 20 livenessProbe: tcpSocket: port: 3000