Could I mount zram instead of tmpfs?

In Volumes | Kubernetes , I see if you set the emptyDir.medium field to "Memory" , Kubernetes mounts a tmpfs. Could I change the filesystem to zram so that more space can be used?

I don’t think you can.

May ask implementing zram feature?

You could make a feature request in the Github repository.

Though I could see this easily being something that doesn’t get any attention. If you want it in Kubernetes itself, you could always look into contributing to the project.

Something else that springs to mind is that the Container Storage Interface exists so you can roll your own code for exactly whatever you want feature-wise. You could probably fork code to implement some custom emptydir solution as well.