Setting limits on postgres?

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.

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

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

e.g.
spec:

postgres_configuration_secret:

Seth