https://prefect.io logo
j

Jonah

08/24/2023, 6:26 PM
Hi, I’m looking for instructions on installing requirements on deployments, but this guide seems to be missing: https://docs.prefect.io/latest/guides/deployment/kubernetes
1
c

Chris Reuter

08/24/2023, 6:38 PM
is this what you are looking for? https://docs.prefect.io/2.11.4/guides/deployment/helm-worker/ cc @Jeff Hale
j

Jeff Hale

08/24/2023, 6:55 PM
Thanks. I got a fix in a few days ago. Should be okay after today’s docs build.
j

Jonah

08/24/2023, 7:01 PM
Thanks for looking into it, @Chris Reuter. I will review what you shared.
prefect rocket 1
@Jeff Hale I am seeing this post you wrote on Medium, and, after following through on it, I’m able to install a single requirement using
{"EXTRA_PIP_PACKAGES":"boto3"}
in the block environment field. However, I’m unable to figure out what’s the syntax for installing multiple requirements. Could you tell me what it is or tell me where I can find it?
j

Jeff Hale

08/24/2023, 11:23 PM
Hi Jonah. Using a Kubernetes work pool is now the recommended way to interact run flows on Kubernetes. In the work pool settings there is an option to specify other package dependencies. That's one way to do it.
j

Jonah

08/25/2023, 3:37 AM
Hi @Jeff Hale, I’m not seeing the option to specify other package dependencies. Could you tell me how to navigate to it? Thanks.
j

Jeff Hale

08/25/2023, 2:53 PM
Similar to shown in the blog post, you can use the
Environment Variables
field to enter additional pip packages
From the blog post:
From the blog post:
Enter the _EXTRA_PIP_PACKAGES_ environment variable pair that we passed to prefect deployment build as an override in our previous example. Note that we could add more packages by separating their names with a space inside the parentheses.
j

Jonah

08/31/2023, 11:16 PM
Thank you so much. That worked. Not sure how I missed the part about the spaces.
👍 1
🙌 1