Scarlett King

11/23/2021, 5:45 PM
Hey, so I’m using prefect server on AKS. For the job run, I want to pass a few environmental variables to the image by default. What is the best way to add this? On my local machine, I start the kubernetes agent with —env, can I do similar thing for the Kubernetes agent deployed on AKS?

Jake Kaplan

11/23/2021, 6:07 PM
Hey Scarlett, you should be able to add the
flag when you startup your agent in AKS (
prefect agent kubernetes start --env ...
). You can also do so when generating a kubernetes manifest with
prefect agent kubernetes install --env ...
:upvote: 1