Self-hosting examples
Helm
Self-host your own Prefect server and connect a Prefect worker to it with Helm.
You can use Helm to manage a self-hosted Prefect server and a worker.
Prerequisites
- A Kubernetes cluster
- Install the Helm CLI
Deploy a server with Helm
Configuring ingress or publicly exposing Prefect from the cluster is business dependent and not covered in this tutorial. For details on Ingress configuration, consult the Kubernetes documentation.
Add the Prefect Helm repository:
Create a namespace
Create a new namespace for this tutorial (all commands will use this namespace):
Deploy the server
Expected output:
Access the Prefect UI:
Open localhost:4200
in your browser. If using basic authentication, sign in with admin:password123
.
Deploy a worker with Helm
To connect a worker to your self-hosted Prefect server in the same cluster:
Expected output:
Cleanup
To uninstall the self-hosted Prefect server and Prefect worker:
Troubleshooting
Was this page helpful?