I feel like I am misunderstanding RAM based emptyDir volumes in Kubernetes.
Let's suppose my Kubernetes node has a total of 100GB. If I have 4 different emptyDirs that have
emptyDir.mediumset to "Memory", by default will they all have 50GBs of memory? In that case what happens when the total amount of memory used in my 4 emptyDirs exceeds 100GB?I know in general RAM is fast, but what are some examples for the downsides? From the official documentation, I see the below but I don't quite understand the statement. My understanding is that if a Pod crashes, files on emptyDirs using disk will still be deleted. Will the files be kept upon node reboot if they are stored in disk? Also what do they mean by
count against container memory limit?
While tmpfs is very fast, be aware that unlike disks,
tmpfs is cleared on node reboot and any files you
write count against your container's memory limit