I am working with Kubernetes and a pod is composed by different containers.
I need to apply different behaviours when two specific events happen:
From what I understood in both the cases kubernetes invokes the preStop hook and sends a SIGTERM, so it's impossible for me to understand in which of the two situations I am. Is that right? Am I missing something?
Thanks