Klemen Strojan
11/20/2020, 9:18 AMjosh
11/20/2020, 4:03 PMjob_template_path
kwarg you can optionally provide a different default template for the jobs that the agent creates. If you follow a spec like the current default one you could copy it and add in your nodeSelector. Then provide the agent with the path to that updated yaml spec.
Side note you could avoid this entirely if you want to test out a new experimental feature 🙂 There is a new feature called Run Configs which is a replacement for the current Environment pattern. With this you could set a KubernetesRun for your flow’s .run_config
and in the KubernetesRun you are able to specify k8s specific configuration directly! Docs: https://docs.prefect.io/api/latest/run_configs.html#kubernetesrunKlemen Strojan
11/23/2020, 6:37 AM