Arthur
05/23/2024, 10:04 AMMarvin
05/23/2024, 10:05 AMshell
prefect work-pool create my-k8s-pool --type kubernetes
2. Configuring with Helm:
Prefect provides detailed documentation on integrating with Kubernetes, including using Helm charts to manage workers.
3. Configuration:
When configuring your Kubernetes work pool, you specify job configuration details such as resource limits, image names, etc. You can configure these details in a values.yaml
file for your Helm chart.
Example `values.yaml`:
yaml
worker:
replicas: 2
image:
repository: prefecthq/prefect
tag: <desired-version>
resources:
limits:
cpu: "1"
memory: "500Mi"
requests:
cpu: "0.5"
memory: "100Mi"
4. Deployment:
Deploy your Helm chart using a command like:
shell
helm install my-prefect-worker -f values.yaml <chart-name>
For detailed steps on configuring and deploying workers via Helm, you can refer to the Prefect Kubernetes documentation.
Here are some relevant links from the Prefect documentation:
- Work Pools
- Creating Work Pools
And a link to a related GitHub issue for further insights:
- Kubernetes Worker documentation