Kubernetes use TERM signal on count down replicaSet .
this is so dangerous for my application .
I use Tomcat application server and this application server has own shutdown mechanism for terminating application server.
when i send operating system (Linux) signals (9,15,...) to jvm , JVM does not know what do with threads inside jvm , so threads killed before successfully completed.
Request -----> BackEnd API -----> [Process] -----> Response ^ Send TERM (Signal) while thread doing Process
Is there any way to change kubernetes container shutdown mechanism ?
I want kubernetes use :