Community, I want to gentle stop Kestrel and a running .Net Core app to make it completes existing queries, prevent it from handle new queries and when all existing queries are done - stop the app and Kestrel.
I need it to setup CI/CD in Kubernetes, where I have balancer routes to Kestrel without nginx, to achieve zero downtime while deployment new app version.
Perfectly would be nice to have something similar to `nginx -s quit
Can anyone suggest the solution or share knowledge how to organize zero downtime with dotnetcore in Kubernetes?
I tried to Google the solutions - didn't worked out for me. Killing the process are not the option.
Thank you