# Setting limits on postgres?

**URL:** <https://forum.ansible.com/t/setting-limits-on-postgres/36625>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 13, 2022, 2:46pm UTC](https://forum.ansible.com/t/setting-limits-on-postgres/36625 "2022-05-13T14:46:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dane\_DeValcourt](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Dane\_DeValcourt](https://forum.ansible.com/u/Dane_DeValcourt)\
**Post date:** [May 13, 2022, 2:46pm UTC](https://forum.ansible.com/t/setting-limits-on-postgres/36625/1 "2022-05-13T14:46:50Z")

</div>

Any advice on overcoming this:

create Pod awx-prod-postgres-0 in StatefulSet awx-prod-postgres failed error: pods “awx-prod-postgres-0” is forbidden: failed quota: default-2mp2v: must specify limits.cpu,limits.memory

I thought it would be a matter of adding limits under roles - installer - main.yml

Then do a make deploy and kubectl apply -f awx-prod.yml

But the issues persists.

---

<div class="post-metadata">

**Author:** ![Dane\_DeValcourt](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Dane\_DeValcourt](https://forum.ansible.com/u/Dane_DeValcourt)\
**Post date:** [May 13, 2022, 2:50pm UTC](https://forum.ansible.com/t/setting-limits-on-postgres/36625/2 "2022-05-13T14:50:36Z")

</div>

And why is there a postgres pod and limits if I am trying to set up and use an external database. I thought I followed the directions to do an external database yet I’m getting failures on not declaring limits for a postgres pod.

create Pod awx-prod-postgres-0 in StatefulSet awx-prod-postgres failed error: pods “awx-prod-postgres-0” is forbidden: failed quota: default-2mp2v: must specify limits.cpu,limits.memory

---

<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:** [May 18, 2022, 8:09pm UTC](https://forum.ansible.com/t/setting-limits-on-postgres/36625/3 "2022-05-18T20:09:15Z")

</div>

Hi!

Does your awx-prod.yml specify the postgres\_configuration\_secret? I believe if that is set properly, then the operator won’t spin up a postgres pod.

[https://github.com/ansible/awx-operator#external-postgresql-service](https://github.com/ansible/awx-operator#external-postgresql-service)

e.g.  
spec:  
…  
postgres\_configuration\_secret:

Seth
