k8wiz
Kubernetes
Easy
Storage

A container writes files to an emptyDir volume with medium: Memory. What do those files count against?

Select your answer:

Show answer and explanation

Answer: The memory limit of the container that wrote them

Explanation

With medium: Memory, Kubernetes mounts a tmpfs, and files written there count against the memory limit of the container that wrote them. Filling the volume can get that container OOM-killed even though its process heap is small. Setting a sizeLimit on the volume caps how much it can hold.

Read more about Kubernetes