Kubernetes can trigger a shutdown but only by issuing a GET
. Our current shutdown endpoint only accept POST
which makes it unusable.
Comment From: snicoll
See #18244
Comment From: wilkinsona
I really don't like this. GET
requests should have no side-effects and be idempotent. Shutting down the app on GET
violates both of those. My understanding is that Kubernetes will send SIGTERM
to initiate shutdown. Can't we rely on that instead?
Comment From: philwebb
I raised this when watching @saturnism present Kubernetes best practices at a conference. Looking at the documentation, I'm not really sure why the HTTP method would be used over SIGTERM. Perhaps Ray can comment?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.