Saurabh Indoria

12/10/2021, 4:36 AM
Hi, I was looking at custom job templates for Kubernetes run. In the documentation, the link given for the default template is but this file appears to be more like the default file. 1. Can you please confirm which is the default file used by Prefect? 2. If I just have to modify the CPU limits, should I copy
and modify the CPU section leaving the rest as it is?

Kevin Kho

12/10/2021, 4:53 AM
Hi @Saurabh Indoria, you can see it here that the agent pulls the first file. Before Prefect 0.14.0, there were no RunConfigs, just Environments. Environments are now deprecated for RunConfigs, but left in the codebase for backward compatibility. The
is used by the Environment code path here , so only relevant if you are below Prefect 0.14.0 Honestly, the easiest way to edit the CPU and Mem limits would be through the
defined in your Flow. There is an example in this section. I say this is easier because if you modify the
, it still needs to be in a place that is accessible by your agent, meaning it has to be stored in somewhere like S3 or in the container image.

Saurabh Indoria

12/10/2021, 4:55 AM
Hi @Kevin Kho, Thanks for the detailed and quick response! I totally missed the KubernetesRun config option to increase CPU and memory... you saved me a lot of hours, thanks mate!
👍 1