haf
03/09/2021, 9:57 PMstart
command that also takes --job-template <path>
— how do I configure my own job template when using prefect agent kubernetes install
?haf
03/09/2021, 9:58 PMprefect agent kubernetes install
creates a supervisord.conf file, which is wrong.Brian Mesick
03/09/2021, 10:00 PMjob-template
but the thing I was trying to replace (image pull policy) had its own command line flag.haf
03/09/2021, 10:01 PMBilly McMonagle
03/09/2021, 10:06 PMBilly McMonagle
03/09/2021, 10:08 PMKubernetesRun
like this. I have code that looks something like this:
KubernetesRun(
env={"SOME_KEY": "SOME_VALUE"},
image="some_image_name",
service_account_name="name_of_a_service_account,
job_template="your_yaml_template",
)
Billy McMonagle
03/09/2021, 10:09 PMhaf
03/09/2021, 10:29 PMhaf
03/09/2021, 10:29 PMhaf
03/09/2021, 10:30 PMBilly McMonagle
03/09/2021, 10:30 PMBilly McMonagle
03/09/2021, 10:31 PMKubernetesRun
object because the template is configurable at the flow level, and the agent doesn't have to know about it at all. I think this is a good design and appropriate separation, however if you'd like to provide a custom template attached to your agent as a default for all flows, that is possible too. It's very flexible.Billy McMonagle
03/09/2021, 10:32 PMhaf
03/09/2021, 10:41 PMhaf
03/10/2021, 6:42 PMcommand
nor args
despite also overwriting the job-spec
file, so I had to deploy it outside of Istio.haf
05/15/2021, 1:57 PM