How do you go about setting up a volume for jobs when using the kubernetes agent? I see that
is an option when using start, but not when using install. I'm able to set up a volume on the agent, but I realized that won't actually make the volumes available to my flows when I run them.
1 year ago
Hey @Will Milner,
I think there are a few options available to you.
You can extend the
cli command to accommodate a custom
to pass to the agent with the volume you’ve determined or use the start command with the
flag, potentially pulling a yaml from some cloud storage. Another option would be to attach the custom job template to the KubernetesRun
of your flow, but only if you’d like everything configured on the flow side.Overall, the best practice would be to use a ConfigMap that holds the config file and mount it as a volume, but I don’t have much experience going with this option.
1 year ago
thanks for the suggestions. I was able to modify the command the agent container uses to accept the --job-template argument, and supplied the template via the volume I had mounted to the agent