npx signal forwarding isn't working as expected in Kubernetes #141011
Replies: 1 comment 2 replies
-
Thanks for posting in the GitHub Community, @madhusudancs ! We’ve moved your post to our Programming Help 🧑💻 category, which is more appropriate for this type of discussion. Please review our guidelines about the Programming Help category for more information. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We launch our Nodejs services as Kubernetes. We have an ENTRYPOINT command in our Dockerfile that looks like this:
When the pod that runs this container is killed, service process launched as
./build/service/src/index.js
never gets called on itsprocess.on('SIGTERM', ... )
Using
[killsoop](https://github.com/iovisor/bcc/blob/master/tools/killsnoop.py)
frombcc-tools
it is clear that SIGTERM never gets forwarded beyond ash -c
process that's spawned. Here is the process tree for our podHere is the killsnoop output:
Does npm exec create a wrapper shell process (with
sh -c
)? How does this work? Any idea why signal forwarding wouldn't work with our setup?Beta Was this translation helpful? Give feedback.
All reactions