Hi, is there a way to set `limits` in kubernetes j...
# ask-metaflow
h
Hi, is there a way to set
limits
in kubernetes jobs? Currently, it sets
requests
which might not serve the some of our purposes
b
watch out if you are using uv with a lot of deps. uv can briefly use more than the default amount specified in metaflow and crash your jobs on startup when uv sync is run in the pod by metaflow.
h
uv
installation should be fine, Im trying to ensure the pods on k8s does not exceed the memory/cpu limit set
b
Yea the
qos='Guaranteed'
will do that for you. I mention the uv bit as a warning because even if your code uses less than 4 GB of ram, uv might use more and k8s will kill your container with this setting
h
Got it, thanks Mitch!
😃 1