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.
More easy Kubernetes questions
- Which kubectl command is used to view the logs of a pod?
- What is a Pod in Kubernetes?
- What is the purpose of a Kubernetes Service?
- Which command would you use to create a deployment from a YAML file?
- Which kubectl command would you use to get detailed information about a specific pod?
- What is a Kubernetes Namespace used for?