I’m trying to execute some command in preStop hook in container, but I don’t see anything in logs/events. Can someone please help me how to check preStop logs and verify if it was really execute?
- name: lifecycle-demo-container
command: ["/bin/sh", “-c”, ’ echo “i: (date)”; ']
command: ["/bin/sh","-c","echo Hello from the preStop handler "]