add liveness and readiness probes

This commit is contained in:
2026-05-01 09:18:11 +02:00
parent 39354971f3
commit 6a2b875742

View File

@@ -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