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

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,

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