Skip to content

Default cpu limits #2804

@ecniiv

Description

@ecniiv

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using? ghcr.io/zalando/postgres-operator:v1.13.0
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? Bare Metal K8s
  • Are you running Postgres Operator in production? no
  • Type of issue? bug report/question

HI, i saw this PR: #2524 that should resolve the default cpu limit problems, but using the v1.13.0 postgres operator image I still can't let the cpu limits empty, the operator will update the statefulset:

time="2024-11-20T16:09:08Z" level=info msg="statefulset test/test is not in the desired state and needs to be updated" cluster-name=test/test pkg=cluster worker=7
time="2024-11-20T16:09:08Z" level=debug msg="+              cpu: 1," cluster-name=test/test pkg=cluster worker=7

In the PR #2524 I see the doc updated for default_cpu_limit parameters:

Empty string or `0` disables the default.

but the doc here seems not updated, and if I try:

  resources:
    requests:
      cpu: 100m
      memory: 100Mi
    limits:
      cpu: ""
      memory: 250Mi

I'm getting The postgresql "test" is invalid: spec.resources.limits.cpu: Invalid value: "": spec.resources.limits.cpu in body should match '^(\d+m|\d+(\.\d{1,3})?)$'

Maybe I'm missing something.
Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions