Platform & DevOps·Packaging: containers and images
the shutdown signal is delivered and ignored, and every rollout takes exactly thirty seconds per pod before something kills it.
PID 1 problem
Also calledinit problem, zombie reaping, signal handling in containers
The consequence of a container's first process being PID 1: the kernel applies no default signal handlers to it, and it is responsible for reaping orphaned children. An application never written to be an init system therefore ignores SIGTERM and leaks zombie processes. The fixes are to handle signals properly in the application, use the runtime's small init helper, or exec the real process so it becomes PID 1 itself.