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