<p>I'm creating a ram based emptyDir volume for a pod. </p>

<pre><code> volumes:
  - name: ram-disk
    emptyDir:
      medium: "Memory"
</code></pre>

<p>Because this is a ram disk, I need to set the maximum size which it will take from the ram. Is there a parameter to set maximum size and minimum size?</p>

<p>For kubernetes-1.7.x, it's <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#emptydirvolumesource-v1-core" rel="nofollow noreferrer">possible to set the <code>sizeLimit</code> for an <code>EmptyDir</code></a>.</p>
