# AWX-Operator: How to update container resource limits when its already UP?

**URL:** <https://forum.ansible.com/t/awx-operator-how-to-update-container-resource-limits-when-its-already-up/37102>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 15, 2022, 5:24pm UTC](https://forum.ansible.com/t/awx-operator-how-to-update-container-resource-limits-when-its-already-up/37102 "2022-09-15T17:24:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patok\_llamera](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@patok\_llamera](https://forum.ansible.com/u/patok_llamera)\
**Post date:** [September 15, 2022, 5:24pm UTC](https://forum.ansible.com/t/awx-operator-how-to-update-container-resource-limits-when-its-already-up/37102/1 "2022-09-15T17:24:57Z")

</div>

Hello,

I saw a documentation about resouce limits customization at install time but I’m not able to find on how to customize resource limits when all the containers are already up and running.

I tried editing the awx deployment (kubectl edit deploy awx) under resources and save it. I saw it tried to terminate and rebuild but the new resource limit did not take effect.

These are the following specs I’m refering to. How can i update this when container is already up and running.

web\_resource\_requirements: requests: cpu: 250m memory: 2Gi limits: cpu: 1000m memory: 4Gi task\_resource\_requirements: requests: cpu: 250m memory: 1Gi limits: cpu: 2000m memory: 2Gi ee\_resource\_requirements: requests: cpu: 250m memory: 100Mi

Thanks,

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [September 16, 2022, 5:11pm UTC](https://forum.ansible.com/t/awx-operator-how-to-update-container-resource-limits-when-its-already-up/37102/2 "2022-09-16T17:11:00Z")

</div>

You need to add these resources to the correct custom resource.  
you should use **kubectl edit awx** (or edit the awx\_demo.yaml then do kubectl apply -f awx\_demo.yaml)

“kubectl edit deploy awx” will modify the _deployment_ resource, but the awx-operator reconciliation loop will just overwrite the changes there.

Otherwise, seems your syntax for specifying limits looks correct. Let us know if this helps

AWX Team
