As seen in this issue as well, Kubernetes offers no way of starting a graceful shutdown by sending a SIGTERM before dropping the nuke on the container

Kubernetes loves SIGKILL

submited by
Style Pass
2022-06-22 14:00:05

As seen in this issue as well, Kubernetes offers no way of starting a graceful shutdown by sending a SIGTERM before dropping the nuke on the container when memory limits are reached.

We treat containers as cattle but still it would be nice to get the opportunity to answer any in flights calls, maybe commit some offsets and ensure the shutdown state is clean.

This is especially enraging when you have a small memory leak, which might not be on your priority list to fix just yet, as it leads to OOM once a month or so, creeping up 1MB at a time and there is no way of sending a SIGTERM before reaching OOM (maybe when memory usage is at 99%), or giving it a few seconds before SIGKILL.

Leave a Comment