I have a simple SpringBoot application (really a REST-based microservice) that I am deploying in Kubernetes.
It has one downstream dependency (another REST-based web service). I know that for the REST endpoint feeding the liveness probe I should not return a failure if my downstream dependency is unavailable / inaccessible (as Kubernetes restarting my microservice pod won't fix the dependency!).
But in the REST endpoint feeding my readiness probe should I be checking downstream dependencies? I'd rather just do something basic but if I need to be checking more then I will.
@RequestMapping("/health")
public String getHealth() {
return "OK";
}