1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [emptyDir](<https://delaparra-services.nl/knowledge-hub/emptydir>)

  

Category: Kubernetes 

# emptyDir

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is emptyDir?

 

emptyDir: A scratch volume created empty when a Pod starts and deleted when the Pod is removed. Good for caches and sharing files between containers in one Pod. An ` emptyDir ` is a temporary volume in Kubernetes. It is created empty when a pod starts and deleted when the pod is removed.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about emptyDir

  

### How is emptyDir used in practice?

 

All containers in the same pod can use it, which makes it useful for sharing files between them, such as a sidecar that processes logs written by the main container. It also works as scratch space for caches, temporary uploads or build output.

    

### What should you keep in mind with emptyDir?

 

Never store data you need to keep in an ` emptyDir `. A pod can be rescheduled to another node at any time, and the volume goes with it. Set a ` sizeLimit ` so a runaway cache cannot fill the node's disk. For a faster cache in memory, ` medium: Memory ` uses RAM instead, which counts towards the container's memory limit.

    

### What does an example of emptyDir look like?

 

```
volumes: - name: tmp emptyDir: sizeLimit: 500Mi
```

 

## At a glance

   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Kubernetes terms

 

- [Deployment](<https://delaparra-services.nl/knowledge-hub/deployment>) 
- [describe](<https://delaparra-services.nl/knowledge-hub/describe>) 
- [edit](<https://delaparra-services.nl/knowledge-hub/edit>) 
- [exec](<https://delaparra-services.nl/knowledge-hub/exec>) 
- [get](<https://delaparra-services.nl/knowledge-hub/get>) 
- [HPA (HorizontalPodAutoscaler)](<https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler>)

 

[All terms starting with E](<https://delaparra-services.nl/knowledge-hub#letter-e>)

 

## Skills

 

- ### Kubernetes Manifest Generator

 

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

 [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) 
- ### Helm Chart Scaffolding

 

Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.

 [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) 
- ### GitOps Workflow

 

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

 [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/emptydir/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) 
- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/emptydir)
