DEV Community

loading...

Can I terminate a process gracefully before the hard eviction with a prestop hook?

gadimli93 profile image Nushaba M. Gadimli ・1 min read

My Application stops gracefully when receiving a SIGTERM. graceful-stop operation is deleting a znode in the ZooKeeper.

But what I try is to automatically terminate a process gracefully before the Kubernetes evicts my pod.

I want to set prestop hook to "kill 1" to make a graceful-stop before the pod…

Discussion (0)

pic
Editor guide