https://prefect.io logo
Title
l

Lionel

05/18/2021, 6:02 AM
I got Prefect-Server and UI deployed using Helm based on official documentation. It's up and running. Now I'd like to run Flows which uses 3rd party dependencies/libraries like pymysql and py-postgresql. Since a Flow is started as a Job by the Kubernetes Agent, how do I install the dependencies on the Job?? and also how do I pass the ENV possessed by the Kubernetes Agent to the Job ??
k

Kevin Kho

05/18/2021, 2:03 PM
Hey, on the first one, you can package them up in a Docker image and pass them to KubernetesRun . This will pull the image down when your flow gets run. For the env variable, you can start you agent like this and the Flow will see it.