fi-ts / postgreslet

A small controller which act as bridge between zalando-postgres-operator
GNU Affero General Public License v3.0
6 stars 0 forks source link

Error creating: pods "postgres-initdb-bwh7j" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql #559

Open TLINDEN opened 3 months ago

TLINDEN commented 3 months ago

Creation of initdb pods fails with these errors:

LAST SEEN   TYPE      REASON         OBJECT                                  MESSAGE
25m         Warning   Sync           postgresql/pgfoo-bar123    could not sync cluster: could not sync roles: could not init db connection: could not init db connection: still failing after 8 retries
84s         Warning   FailedCreate   statefulset/pgfoo-bar123   create Pod pgfoo-bar123-0 in StatefulSet pgfoo-bar123 failed error: pods "pgfoo-bar123-0" is forbidden: exceeded quota: cpu-limit, requested: requests.cpu=1200m, used: requests.cpu=100m, limited: requests.cpu=1
14m         Warning   FailedCreate   job/postgres-initdb                     (combined from similar events): Error creating: pods "postgres-initdb-f2gvt" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
10m         Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-zs2z2" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
10m         Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-2k5cg" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
10m         Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-kjclj" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
9m47s       Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-6nr42" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
8m27s       Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-txcrz" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
5m47s       Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-7xm5c" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql
27s         Warning   FailedCreate   job/postgres-initdb                     Error creating: pods "postgres-initdb-bwh7j" is forbidden: failed quota: cpu-limit: must specify limits.cpu for: psql; requests.cpu for: psql

Happens after updating to latest v0.13.0 release.

eberlep commented 3 months ago

How can I reproduce this?