From b52816008b16eb6dd8c6d533fe7196aed54139db Mon Sep 17 00:00:00 2001 From: MihaelJanjic Date: Sat, 2 May 2026 21:36:51 +0000 Subject: [PATCH] liveness and readiness probes --- k8s/moj-servis/deployment.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/k8s/moj-servis/deployment.yaml b/k8s/moj-servis/deployment.yaml index 01e074d..17b6b9a 100644 --- a/k8s/moj-servis/deployment.yaml +++ b/k8s/moj-servis/deployment.yaml @@ -19,6 +19,28 @@ spec: image: git.fpmoz.sum.ba/mihaeljanjic/moj-servis:2.0 ports: - containerPort: 8000 + 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 + + resources: + requests: { memory: "64Mi", cpu: "50m" } + limits: { memory: "128Mi", cpu: "200m" } + envFrom: - configMapRef: name: moj-servis-config