liveness and readiness probes

This commit is contained in:
2026-05-02 21:36:51 +00:00
parent 4384132aea
commit b52816008b

View File

@@ -19,6 +19,28 @@ spec:
image: git.fpmoz.sum.ba/mihaeljanjic/moj-servis:2.0 image: git.fpmoz.sum.ba/mihaeljanjic/moj-servis:2.0
ports: ports:
- containerPort: 8000 - 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: envFrom:
- configMapRef: - configMapRef:
name: moj-servis-config name: moj-servis-config