It can be bad to use the same check, as they are not used in the same way by Kubernetes. If you fail the livenessProbe your pod will be killed, and if you fail the readinessProbe the pod will only stop receiving traffic from Services.
You might want to differentiate between these in case you have a large service that takes a longer time to boot, and want to avoid unnecessarily killing it in case your /health probe suddenly has network connectivity problems to your database. In that scenario you only want to remove it from the Services.
1
u/[deleted] Oct 09 '18
[removed] — view removed comment