Propagating a SIGTERM Signal to the Main Process in a Kubernetes Pod
As a Kubernetes user, you may find that when you restart a pod in Kubernetes, the process running inside the container does not receive the SIGTERM signal. Instead, the signal is only sent to the PID of the entrypoint shell script.