I'm wondering if anyone has a custom job_template ...
# ask-community
o
I'm wondering if anyone has a custom job_template YAML for KubernetesConfig that they used to assign some environment variables. I can find it in the documentation for the legacy components but not for the current one. Thanks
k
What is the use case here? You can do it through the
KubernetesRun()
with the
env
parameter. If it’s credentials, it can be done via storing Secrets in Storage. This is an example though of what you want.
❤️ 1
o
Hi Kevin, one thing we noticed was that imagePullPolicy attribute of the KubernetesRun() was not being reflected into the job yaml when we specified a job template to use, we had to specify the image pull policy in the job template for it to reflect. This was not clear in the documentation
Thank you so much for the sample file as well
k
Ah I see