tmpfs is a virtual filesystem that keeps files in volatile memory instead of on a hard disk. In Kubernetes, an emptyDir volume uses tmpfs when its medium is set to Memory. This can provide faster I/O and avoid writing sensitive data to disk, but the contents disappear when the pod is deleted. section 9.2.1
Configure an in-memory emptyDir volume
Set the volume medium to Memory: volumes: - name: content emptyDir: medium: Memory Mount this volume into a container as usual. Set sizeLimit as well, especially when the pod has memory resource limits, because the volume consumes memory. section 9.2.1
