<p>Per <a href="https://kubernetes.io/docs/concepts/storage/volumes/#emptydir" rel="nofollow noreferrer">Doc for Kubernetes Volumes</a>, &quot;(emptyDir) exists as long as that Pod is running on that node&quot;. So when actually is emptyDir deleted for a &quot;Completed&quot; pod of a job?</p>
<p>I thought it's deleted when the pod is removed (<code>kubectl get pod</code> can no longer find the pod). But I'm wrong. Experiments show that an emptyDir is deleted as soon as the pod is completed.</p>
<p>Has anybody noticed this? Or is this version-dependent?</p>

Viky Leaf
<p>Yes, and it is strongly tied with Pod. This is not version-dependent.</p>
<p><strong>emptyDir:</strong> emptyDir volume’s lifetime is tied to that of the pod, the volume’s contents are lost when the pod is deleted.</p>
<p><strong>Use cases:</strong> An emptyDir volume is especially useful for sharing files between containers running in the same pod. But it can also be used by a single container for when a container needs to write data to disk temporarily, such as when performing a sort operation on a large dataset.</p>
