<p>I have a Kubernetes cluster and some applications running on it. All of the Pods have their own resource limit/request settings.</p>
<p>One of my applications uses tmpfs (/dev/shm) for its data processing, so I have described its volume setting like below to expand available tmpfs size:</p>
<pre class="lang-yaml prettyprint-override"><code>volumes:
- name: tmpfs
  emptyDir:
    medium: Memory
    sizeLimit: 1G
</code></pre>
<p>However, as Kubernetes doesn't take tmpfs usage into account when it schedules new Pods, some Pods may not be able to use their allocated memory despite being successfully scheduled based on its memory request.</p>
<p>Is it possible to let Kubernetes consider the use of tmpfs? I want to set the memory request to the sum of its memory limit and tmpfs usage but it's not possible as the request must be less than or equal to the limit. I wonder there may be a proper way to do this.</p>

Daigo
<p><code>tmpfs</code> volume is treated as container memory usage, you should add the 1Gi to your <code>resources.limits.memory</code> for the scheduler to take this into consideration. It is fine to have the <code>resources.requests.memory</code> lower than your limits.</p>
