Yu Shao Pang
08/07/2025, 6:13 AMMarvin
08/07/2025, 6:13 AMMarvin
08/07/2025, 6:14 AMbash
# Add the Prefect Helm repository
helm repo add prefect <https://prefecthq.github.io/prefect-helm/>
# Update your repositories
helm repo update
# Install Prefect Server
helm install prefect-server prefect/prefect-server
# Install a Prefect Worker
helm install prefect-worker prefect/prefect-worker
3. Kubernetes Operators:
As of Prefect 3.x, there isn't a dedicated Kubernetes operator available. The previous Prefect Kubernetes operator was part of Prefect 1.x and is no longer maintained. Instead, the recommended approach is to:
- Use Helm charts for deploying the server and workers
- Use the Kubernetes infrastructure block in Prefect for running flow tasks on Kubernetes
4. Configuration Options:
The Helm charts offer extensive configuration options through values.yaml
, including:
- Resource limits and requests
- Service configurations
- Database settings
- Worker configurations
- Ingress settings
5. Best Practices:
- Always use version-specific tags for the images
- Configure resource limits appropriately
- Set up proper ingress if you need external access
- Consider using persistent storage for the database
- Configure proper security settings, especially if exposed externally
For detailed configuration options and examples, you can check:
1. The official documentation: https://docs.prefect.io/latest/guides/deployment/server-guide/
2. The Helm chart repository: https://github.com/PrefectHQ/prefect-helm
Would you like me to provide more specific details about any particular aspect of the Kubernetes deployment, such as configuration examples or specific Helm values?