I have a preStop hook for my pod that sends TSTP signals to each process, and waits for their completion, but only to a maximum of 60 seconds.
Let us say that we set terminationGracePeriodSeconds
to 3600 seconds. After the completion of the preStop hook, shouldn't it now send the TERM
signal to my processes, and wait until the expiry of terminationGracePeriodSeconds
before finally sending the KILL
signal?
Because now it seems that after the completion of the preStop hook, it immediately sends a KILL
signal and my pod is deleted abruptly, even when there is still a process running.