<p>in LimitRange in k8s we can simply limit the ram and the cpu and can we do that for ephemeral-storage as wella?</p>

yashod perera
<p>To set default requests and limits on ephemeral storage for each container in  <code>mytest</code> namespace:</p>
<pre><code>apiVersion: v1
kind: LimitRange
metadata:
  name: storage-limit
  namespace: mytest
spec:
  limits:
  - default:
      ephemeral-storage: 2Gi
    defaultRequest:
      ephemeral-storage: 1Gi 
    type: Container
</code></pre>
<p>To change scope to Pod simply change to <code>type: Pod</code></p>
