g00glen00b / dimitri.codes

Static generator for dimitri.codes using Gatsby
https://dimitri.codes
Other
20 stars 7 forks source link

Adjust readiness en liveness probe #16

Closed g00glen00b closed 4 years ago

g00glen00b commented 4 years ago

Within the blogpost about Kubernetes, ideally, the liveness probe shouldn't use /actuator/health. If we do this, and let's say a database goes down, then /actuator/health goes DOWN, and the pod would be killed, which is not ideal (it's not the application their "fault").

A better approach would be to use /actuator/info or another custom endpoint.

Readiness probe should use /actuator/health, since the application is only ready to take traffic when the health is UP.

g00glen00b commented 4 years ago

This has been updated, and will be published within 10 minutes.