You’ve just containerized your shiny Next.js application. You’ve set resource limits in Kubernetes (say, memory: 512Mi). Everything works fine locally.

But in production, after a few hours—or sometimes under the first real load—your pod dies.

kubectl describe pod shows the dreaded:

text

Last State: Terminated