From 6e18666f51cca2d0f151b070c59049bcf005a450 Mon Sep 17 00:00:00 2001 From: Milos Backonja <35807060+milosbackonja@users.noreply.github.com> Date: Tue, 19 Dec 2023 08:06:58 +0100 Subject: [PATCH] feat: Liveness, and readiness probes (#817) Signed-off-by: Milos Backonja --- .../charts/agent/templates/deployment.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/infrastructure/charts/agent/templates/deployment.yaml b/infrastructure/charts/agent/templates/deployment.yaml index 85a2023818..17266fc5f8 100644 --- a/infrastructure/charts/agent/templates/deployment.yaml +++ b/infrastructure/charts/agent/templates/deployment.yaml @@ -55,6 +55,18 @@ spec: - name: prism-agent-server image: "{{ .Values.server.image.repository }}/{{ .Values.server.image.tag }}:{{ .Values.server.image.version | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.server.image.pullPolicy }} + livenessProbe: + httpGet: + path: /_system/health + port: 8085 + initialDelaySeconds: 10 + periodSeconds: 5 + readinessProbe: + httpGet: + path: /_system/health + port: 8085 + initialDelaySeconds: 5 + periodSeconds: 5 resources: {{- toYaml .Values.server.resources | nindent 12 }} ports: