https://flyte.org logo
#announcements
Title
# announcements
q

Quinn Romanek

01/19/2022, 5:31 PM
How do I configure default resource limits for tasks?
I'm using the helm chart but all my tasks are limited to 100m cpu
k

katrina

01/19/2022, 5:40 PM
you can update the config block for flyteadmin here: https://docs.flyte.org/en/latest/deployment/cluster_config/flyteadmin_config.html#section-task-resources the defaults will get injected when a task fails to specify a resource value and the limits are used to ensure a task never requests or set its limits to greater than the config values
q

Quinn Romanek

01/19/2022, 5:44 PM
It seems like defaults are being read as limits in my case for some reason
When I start a pod it has a 100m request and 100m limit
But my limit in admin config is 2 cpu
k

katrina

01/19/2022, 5:46 PM
yup this is the intended behavior, there's no concept of "default limits" if a resource is unspecified, the default value gets injected as the task request and limit
the limit in the config is only used for validation, not injection
q

Quinn Romanek

01/19/2022, 5:47 PM
Excellent, thank you so much
👍 1
26 Views