<p>I created a pod with a volume mounted on it as <code>emptyDir</code>.</p>
<pre><code>        - name: tmp
          emptyDir: {}
</code></pre>
<p>However the pod has only ~5GB of memory allocated to <code>tmp</code> directory. Is there a way I could predefine the tmp volume in such a way that I can get ~50GB memory allocated to it?</p>
<p>Note: I tried setting <code>sizeLimit</code> based on <a href="https://stackoverflow.com/questions/34610763/setting-kubernetes-emptydir-volume-size">this thread</a> but it is to set the upper limit and not the lower limit for an emptyDir volume.</p>
<p>Also I prefer using ephemeral storage for this application rather than <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">persistent volumes.</a></p>

user4202236
<p>You can use <a href="https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes" rel="nofollow noreferrer">Generic ephemeral volume</a> if you are looking for the behavior of ephemeral volume but features of PVC. This will allow you to specify the size of ephemeral volume you need.</p>
