From 429db9117c15a9d734407593675228dc11dfee64 Mon Sep 17 00:00:00 2001 From: Anatolii_Hrychaniuk <Anatolii_Hrychaniuk@epam.com> Date: Fri, 29 Sep 2023 16:58:03 +0300 Subject: [PATCH] [GONRG-7820] - Added liveness health check --- devops/gc/deploy/templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devops/gc/deploy/templates/deployment.yaml b/devops/gc/deploy/templates/deployment.yaml index 54df76f61..9df366d0c 100644 --- a/devops/gc/deploy/templates/deployment.yaml +++ b/devops/gc/deploy/templates/deployment.yaml @@ -53,6 +53,14 @@ spec: runAsNonRoot: true ports: - containerPort: 8080 + livenessProbe: + failureThreshold: 3 + httpGet: + path: /api/indexer/v2/liveness_check + port: 8080 + scheme: HTTP + initialDelaySeconds: 120 + periodSeconds: 20 resources: requests: cpu: {{ .Values.data.requestsCpu | quote }} -- GitLab