# Unable to mount the specified Limit size emptydir volume(tmpfs) using medium as memory in all PODs

**URL:** <https://discuss.kubernetes.io/t/unable-to-mount-the-specified-limit-size-emptydir-volume-tmpfs-using-medium-as-memory-in-all-pods/14952>\
**Category:** General Discussions\
**Tags:** development\
**Created:** [February 23, 2021, 6:13am UTC](https://discuss.kubernetes.io/t/unable-to-mount-the-specified-limit-size-emptydir-volume-tmpfs-using-medium-as-memory-in-all-pods/14952 "2021-02-23T06:13:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghawendra.m](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@raghawendra.m](https://discuss.kubernetes.io/u/raghawendra.m)\
**Post date:** [February 23, 2021, 6:13am UTC](https://discuss.kubernetes.io/t/unable-to-mount-the-specified-limit-size-emptydir-volume-tmpfs-using-medium-as-memory-in-all-pods/14952/1 "2021-02-23T06:13:29Z")

</div>

Hi,

There is a requirement in my environment to restrict the size limit of a tmpfs mount point inside the kubernetes POD.  
As per the official K8S docs, if we create the tmpfs mount using emptydir volume and medium as “Memory”, by default it allocates the mount point size as 50% of the worker Node Memory.  
So, to restrict the Mount point size with some Limit, need to enable the below feature gate. This option will allocate the mount point size as desired Limit.

But, After spawn the POD with the below parameters, still the TMPFS mount point has allocated with 50% of the Worker Node Memory.

Request some one could help me on this.

**Official Kubernetes EmptyDir Document Link for reference:**

> **[Volumes](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir)**
>
> On-disk files in a container are ephemeral, which presents some problems for non-trivial applications when running in containers. One problem is the loss of files when a container crashes. The kubelet restarts the container but with a clean state. A...

**Feature Gate Name:** SizeMemoryBackedVolumes=true  
**Info in reference Link:**  
"Note: If the SizeMemoryBackedVolumes feature gate is enabled, you can specify a size for memory backed volumes. If no size is specified, memory backed volumes are sized to 50% of the memory on a Linux host. "
