How do I configure default resource limits for tas...
# announcements
q
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
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
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
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
Excellent, thank you so much
👍 1
171 Views