I have a problem. There is preStop option in manifest file and OOMKilled was happened. pod was restarted but no heapdump is created.
lifecycle: preStop: exec: command: ["/tmp/preStop.sh"]
heapdump works when I manually terminate the pod.
so I wonder if pod is restarted, preStop is not supposed to be executed?
I thought when pod is restarted, first send TermSignal to application and execute preStop and terminate and start pod again. Am I wrong?
Thanks Best Regards.