I’m working with a Spring Boot application. And I have included the http liveness probe config using REST API endpoint. So, whenever the REST API is inaccessible, then Kubernetes will restart the pod.
The question is, I need identify if there is anyway to differentiate the pod restart activity was triggered by Liveness Probe against the manual restarts done by deployment team.
Is there any kind of log message included by Kubernetes in the Spring Boot log whenever it restarts the pod?