I'm trying to use pod's lifecycle event. Problem is that command from preStop doesn't run at all. Is there any way to monitor if it was started? Log of the container is empty.
lifecycle:
preStop:
exec:
command: [ "/bin/sh", "-c", "/clean.sh" ]