-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Description
The k8s/deployment.yaml file has livenessProbe and readinessProbe sections commented out. The application.properties file correctly exposes the Spring Boot Actuator endpoints (/actuator/health, /actuator/info) via management.endpoints.web.exposure.include.
These probes are essential for a stable Kubernetes deployment.
- Readiness Probes tell K8s when the app is ready to accept traffic.
- Liveness Probes tell K8s if the app has crashed and needs to be restarted.
Acceptance Criteria
- Uncomment the
livenessProbeandreadinessProbesections ink8s/deployment.yaml. - Ensure the
httpGetpath is correct (/actuator/health). - Set the port to
8080(thecontainerPort). - Tune the probe settings:
initialDelaySeconds: Should be long enough for Spring Boot to start (e.g.,60seconds for liveness,30for readiness).periodSeconds: How often to probe (e.g.,10-15seconds).failureThreshold: How many failures before action (e.g.,3for liveness,5for readiness).