add: liveness and readiness probes
All checks were successful
CI/CD Pipeline / build (push) Successful in 1m25s
CI/CD Pipeline / deploy (push) Successful in 2m9s

This commit is contained in:
2026-04-30 16:36:47 +02:00
parent 4182657226
commit 38388223ec

View File

@@ -21,6 +21,26 @@ spec:
image: git.fpmoz.sum.ba/Marijanela218/helloo-cicdd:latest
ports:
- containerPort: 8000
# ── Liveness: je li proces živ? ─────────────────
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 10 # čekaj 10s nakon starta
periodSeconds: 15 # provjeri svakih 15s
timeoutSeconds: 3 # timeout odgovora
failureThreshold: 3 # 3 fail-a => restart
# ── Readiness: prima li promet? ─────────────────
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 2
env:
- name: APP_VERSION
value: "latest"