<@ULVA73B9P> I want to self-host Prefect on Kubern...
# ask-marvin
e
@Marvin I want to self-host Prefect on Kubernetes (AWS EKS). I don’t have to have a Prefect Cloud account for running flows on Kubernetes, right? I didn’t understand how to create a work pool or configure the worker when I use OSS Prefect. The docs has an example with Prefect Cloud.
m
You can indeed self-host Prefect on Kubernetes (like AWS EKS) without needing a Prefect Cloud account. This allows you to manage your own Prefect server and run flow executions independently. Here’s a bit of guidance on setting up and configuring Prefect for your needs: 1. Self-Hosting Prefect: - Use the Prefect Helm chart to deploy a Prefect server on your Kubernetes cluster. - You will have access to a Prefect UI and the API server, enabling you to manage flows similar to Prefect Cloud but without features like RBAC and SSO. 2. Work Pools and Workers: - A work pool in Prefect allows structuring and managing the execution of flows by coordinating deployments with workers. Think of them as adaptive managers for your execution environments or infrastructure. More about this is warmly detailed here. - Workers are essential in OSS (open-source) versions, and they act as agents executing flows. When deploying on Kubernetes, the workers would interact with available resources there to run your tasks. - You can manage work pools and adjust them using the CLI commands such as
prefect work-pool ls
as detailed here. By tailoring these components according to your infrastructure needs, you can comfortably orchestrate your workflows. Remember, setting up the infrastructure might seem a maze, but with the right chart (or Helm), you'll navigate through smoothly! Feel free to explore more nuanced configurations directly in the documentation I linked above.
a
You dont need Prefect Cloud — which docs are you 👀 at?
a
Yikes.
Yeah you don’t need cloud for the feature, just for the specific spelling of that tutorial.
But we don’t make that obvious at all
Thanks for the toss
e
Thanks @Alexander Azzam. What I'm trying is to run prefect flows on k8 on my local env using docker desktop. So far I've managed to get the server and worker pods up and running, but I'm having trouble defining the
prefect.yaml
file. Is there any template that can help me?