Health checks are endpoints that report whether a running service is functioning correctly, letting load balancers and orchestrators route traffic only to instances that are actually able to serve requests.
A new pod starts up but its database connection pool hasn't initialized yet; the readiness probe fails during that window, so Kubernetes withholds traffic until /actuator/health reports healthy, preventing users from hitting a half-started instance.
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 10
periodSeconds: 5A concise interview answer is
I expose a health endpoint, typically Spring Boot Actuator's /actuator/health, and wire it into Kubernetes as both a liveness and readiness probe. That way traffic is only routed to instances that are genuinely ready, and unhealthy ones get restarted automatically.
Last updated: 16 July 2026
Previous question: Your application requires zero downtime during deployment. What strategies would you use to achieve this?
Next question: How do you manage configuration changes in your application when deploying to different environments?