From 6a2b87574280e55e600d2b01e92302846787f555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelena=20Vu=C4=8Di=C4=87?= Date: Fri, 1 May 2026 09:18:11 +0200 Subject: [PATCH] add liveness and readiness probes --- k8s/moj-servis/deployment.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/k8s/moj-servis/deployment.yaml b/k8s/moj-servis/deployment.yaml index b12723d..bbc5e95 100644 --- a/k8s/moj-servis/deployment.yaml +++ b/k8s/moj-servis/deployment.yaml @@ -1,4 +1,3 @@ -# k8s/moj-servis/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: @@ -40,3 +39,21 @@ spec: limits: memory: "128Mi" cpu: "200m" + + livenessProbe: + httpGet: + path: /health + port: 8000 + initialDelaySeconds: 10 + periodSeconds: 15 + timeoutSeconds: 3 + failureThreshold: 3 + + readinessProbe: + httpGet: + path: /health + port: 8000 + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 2 + failureThreshold: 2 \ No newline at end of file