Hi Guys still new to prefect 3 and I was wondering if there is a way for me to create a k8s secret and then link that to the job to be able to get environemnt variables from ?
g
Garren Moore
10/31/2024, 9:49 PM
I’ve found that in order to access environment variables from the k8s job, you need to add the env vars / secrets / config map to the base_job_template.
h
Hakim
10/31/2024, 9:50 PM
Got it but where do I store the base_job_template with respect to the repository where my flow code lives ?
g
Garren Moore
10/31/2024, 9:54 PM
You’ll want to manage the base job template and config map in helm. Your flow code will spin up on a k8s job from a work pool that contains the aforementioned BJT/CM. At least, this is my understanding of the k8s work pools + k8s job intended design.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.