<p>I am using NFS persistent storage on my Kubernetes cluster and I'm trying to limit the size of storage a deployment can get.</p>
<p>Basically, I want to make sure that if a deployement uses a claim of 5 Gb, my container can't create more than 5Gb of files.</p>
<p>Any idea how I could create this constraint?</p>

Seb
<p>Its up to the storage backend to force the quota/limit.
(<a href="https://github.com/kubernetes/kubernetes/issues/61641" rel="nofollow noreferrer">Ref</a>)</p>
<p>You may use <code>nfs-provisioner</code> volume plugin to enable per-volume quota on NFS persistent volumes. (<a href="https://github.com/kubernetes-incubator/external-storage/blob/master/nfs/docs/deployment.md" rel="nofollow noreferrer">Ref</a>)</p>
