Interview Prep/Kubernetes/Resources, OOM, probes and termination

A Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.

IntermediateTroubleshootingResources, OOM, probes and termination
Answer

Likely causes → The Pod's writable layer + emptyDir + container logs exceeded its ephemeral-storage limit: a debug log level, temp files never cleaned, or a cache written to local disk.

Diagnose →

kubectl get pod worker-x -o jsonpath='{.spec.containers[0].resources}'
kubectl exec worker-x -- du -sh /tmp /var/cache 2>/dev/null

Fix → Clean up temp files, lower the log level, set emptyDir.sizeLimit, or raise the ephemeral-storage limit if the usage is legitimate. Large data belongs on a PVC.

Prevent → Set ephemeral-storage requests/limits on all workloads so one Pod cannot fill a node's disk.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, OOM, probes and termination