# Remove the creation of managed postgres

**URL:** <https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 17, 2022, 10:49pm UTC](https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117 "2022-09-17T22:49:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaushik\_R](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@Kaushik\_R](https://forum.ansible.com/u/Kaushik_R)\
**Post date:** [September 17, 2022, 10:49pm UTC](https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117/1 "2022-09-17T22:49:45Z")

</div>

Hi,

I have configured the source code to use the externally managed postgres database.

I then tried removing the part of source code which creates the init container for the postgres instance be removing it’s [here](https://github.com/ansible/awx-operator/blob/devel/roles/installer/templates/deployments/deployment.yaml.j2).

But somehow the manager doesn’t seem to be picking up that change. Is there something else that needs to be removed from the source code?

---

<div class="post-metadata">

**Author:** ![Kaushik\_R](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@Kaushik\_R](https://forum.ansible.com/u/Kaushik_R)\
**Post date:** [September 19, 2022, 9:22pm UTC](https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117/2 "2022-09-19T21:22:39Z")

</div>

Any help here?

---

<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 21, 2022, 7:01pm UTC](https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117/3 "2022-09-21T19:01:04Z")

</div>

Hi, What is it you are trying to achieve here? There may be an alternative method without changing the source code of the operator

see for setting up external DB [https://github.com/ansible/awx-operator#external-postgresql-service](https://github.com/ansible/awx-operator#external-postgresql-service)

AWX Team

---

<div class="post-metadata">

**Author:** ![Kaushik\_R](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@Kaushik\_R](https://forum.ansible.com/u/Kaushik_R)\
**Post date:** [September 23, 2022, 5:13pm UTC](https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117/4 "2022-09-23T17:13:18Z")

</div>

I have business requirement to apply the namespace quota.

Although the postgres init container is applied a quota at [https://github.com/ansible/awx-operator/blob/0.23.0/roles/installer/defaults/main.yml](https://github.com/ansible/awx-operator/blob/0.23.0/roles/installer/defaults/main.yml), however the quota doesn’t get applied to the container as per [https://github.com/ansible/awx-operator/blob/0.23.0/roles/installer/templates/deployment.yaml.j2](https://github.com/ansible/awx-operator/blob/0.23.0/roles/installer/templates/deployment.yaml.j2).

Therefore, my AWX pod crashes within the namespace due to the below error -

_Error creating: pods “awx-755dcdd7f6-wcvvh” is forbidden: failed quota: ansible-awx-quota: must specify limits.cpu,limits.memory,requests.cpu,requests.memory_

How do I resolve this issue?

---

<div class="post-metadata">

**Author:** ![Kaushik\_R](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@Kaushik\_R](https://forum.ansible.com/u/Kaushik_R)\
**Post date:** [September 27, 2022, 6:08pm UTC](https://forum.ansible.com/t/remove-the-creation-of-managed-postgres/37117/5 "2022-09-27T18:08:43Z")

</div>

Can someone please guide me here?
