A health-clinic portal ENTRYPOINT uses a shell wrapper that never forwards SIGTERM, so Pods hang until they are force-killed. What image design fix helps Kubernetes stop the container cleanly?
Select an answer to reveal the explanation.
Short Explanation
If a shell sits in front of your app like a receptionist who pockets the mail, Kubernetes' polite "please shut down" (SIGTERM) never reaches the real process. Use exec-form ENTRYPOINT/CMD so the app is PID 1 and hears the signal.
Full Explanation
Kubernetes sends SIGTERM to PID 1 in the container, then SIGKILL after the grace period. Shell-form entrypoints often leave a shell as PID 1 that does not forward signals, delaying graceful shutdown. Exec form (JSON array) runs the app directly as PID 1. Zero grace periods and probe abuse are workarounds, not correct entrypoint design.