https://prefect.io logo
Title
r

redsquare

06/30/2022, 10:25 AM
In cloud 2.0 whats the best strategy to install a k8s flowrunner dependency - do I patch a command in to pip install?
1
a

Anna Geller

06/30/2022, 11:31 AM
currently,
KubernetesFlowRunner
is still available within the main package, so no need to install it separately but afaik in the future it will be in a separate package which you would install using:
pip install prefect-kubernetes
https://github.com/PrefectHQ/prefect-kubernetes @Zanie - can you confirm whether we plan to separate out KubernetesFlowRunner into the Collection anytime soon?
r

redsquare

06/30/2022, 11:39 AM
I meant dependencies (requirements) for the flow - e.g clickhouse-driver etc
In v1 there is
EXTRA_PIP_PACKAGES
or are docker images from prefect base the preferred route
👍 1
a

Anna Geller

06/30/2022, 11:56 AM
yup, 100% - since Kubernetes runs pods and within pods containers, packaging code dependencies into a Docker image is the most straightforward and recommended way
r

redsquare

06/30/2022, 11:58 AM
thanks @Anna Geller
👍 1