A Job's main container finished successfully, but the Job never completes because the Pod stays `1/2 Running`.
IntermediateTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → A classic sidecar (Istio proxy, Cloud SQL proxy, log shipper) as a regular container keeps running, so the Pod never terminates and the Job never succeeds.
Diagnose →
kubectl get pod migrate-x -o jsonpath='{range .status.containerStatuses[*]}{.name}{" "}{.state}{"\n"}{end}'
Fix → Declare the sidecar as a native sidecar (init container with restartPolicy: Always); the kubelet stops it after the main container exits. For Istio, enable native sidecars or call curl -X POST localhost:15020/quitquitquit at the end of the job script.
Prevent → Use native sidecars for all Jobs on Kubernetes 1.29+.
More on Resources, OOM, probes and termination
`kubectl describe pod` shows `Last State: Terminated, Reason: OOMKilled, Exit Code: 137`.BeginnerA Java service is OOMKilled at 2 GiB limit but the heap is only `-Xmx1800m`.IntermediateMany Pods on one node were killed at once and the node shows a `SystemOOM` event. Container limits were not reached.AdvancedPods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.IntermediateA Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.Intermediatep99 latency spikes every few seconds, CPU usage graph shows only 40% of the limit.Advanced