<p>I have set a quota policy on my Kubernetes namespaces. I want to update the policy using kubectl command. Is there a kubectl command to update quota policy eg: kubectl edit resourcequota tmc.orgp.large  -n quota-mem-cpu-example (where i can pass the update cpu mem ).</p>
<p><a href="https://i.stack.imgur.com/G8ZCB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G8ZCB.png" alt="enter image description here" /></a></p>
<p>Currently, limits.cpu is 4, can i update it to 8 using the command line?</p>

Aishvarya Suryawanshi
<p>Try:</p>
<p><code>kubectl patch -p '{&quot;spec&quot;:{&quot;hard&quot;:{&quot;limits.cpu&quot;:&quot;8&quot;}}}' resourcequota tmc.orgp.large --namespace quota-mem-cpu-example</code></p>
