title: What should a kubernetes readiness check check
body: <p>I understand how to set up a readiness probe in kubernetes, but are there any best practices about what the microservice should actually check when the readiness probe is called? Two specific examples:</p>
  <ol>
  <li>A microservice that fronts a db where without a functioning db connection, practically all functionality will not work. Here I think pinging the db would be reasonable, failing the readiness check if ping fails. Is this recommended?</li>
  <li>A microservice that uses N other microservices, but where failure to connect to any one would still allow for a majority of the functionality to work. Here I think checking for connectivity to the backing services is ill advised. In this case, assuming there is no extensive &quot;boot&quot; or &quot;warm up&quot; processing, liveness and readiness are equivalent. Correct?</li>
  </ol>
  <p>Thank you</p>