gimlet-io / onechart

A generic Helm chart for your application deployments
https://gimlet.io/docs/reference/onechart-reference
Apache License 2.0
268 stars 46 forks source link

cpu disable limit #139

Open WladyX opened 3 weeks ago

WladyX commented 3 weeks ago

Is it possible to ignore only the CPU limit? I would like to set a limit for memory but no limit for CPU, is that possible? I have tried with cpu: null and cpu: {} but the schema says this is required, I know I can ignore the limits, but I don't want to ignore the memory limit. Thank you!

laszlocph commented 2 weeks ago

You have resources.ignore and resources.ignoreLimits but if you specify something like

resources:
  requests:
    memory: "64Mi"
  limits:
    memory: "128Mi"

OneChart will add a cpu limit from the default values.yaml. That said not providing CPU limits at this moment is not possible. It should be though as it is a common pattern.