Spring Boot app + Kubernetes liveness/readiness checks

后端 未结 4 431
借酒劲吻你
借酒劲吻你 2021-02-03 11:08

I\'m building a few Spring Boot microservices that are getting deployed in a Kubernetes (AKS specifically) cluster. I was planning on setting the probePaths for the

4条回答
  •  太阳男子
    2021-02-03 11:48

    We have used Spring boot Actuator custom Health check for Liveness and Readiness check. You can have your custom logic to determine whether you are able to serve the request or not. If you are able to serve the request then keep the pod alive or else restart it. For database connection issues restart will only help if your connections are stuck and not released.

提交回复
热议问题