Slackbot
04/02/2024, 3:23 AMMarvin
04/02/2024, 3:24 AMvariables
, add the CPU request section, like so:
json
"cpu_request": {
"title": "CPU Request",
"description": "The CPU allocation to request for this pod.",
"default": "default",
"type": "string"
}
You would also add a corresponding section for memory requests and any other resource configurations you need.
For a more comprehensive guide and steps specifically tailored to running your flows with Kubernetes, please refer to the Prefect documentation on running flows with Kubernetes.Ben Zehavi
04/02/2024, 3:24 AMMarvin
04/02/2024, 3:25 AMKubernetesRun
has parameters for setting resources at a per-flow level in the relevant Prefect documentation, as it might provide specific parameters for CPU and memory settings.
2. Deployment Specification: Check the deployment specification for flows, as this could include the capability to specify resources in the flow's deployment script or using the prefect deploy
command.
Without a more distinct excerpt, I suggest visiting the Kubernetes section within the Prefect documentation and searching for terms related to configuring per-flow resource settings or consult the information on KubernetesRun
.
For more precise guidance, it may be necessary to consult the Prefect community or, if provided, the documentation on the specific Prefect version that you are using.Ben Zehavi
04/02/2024, 3:25 AMKevin Grismore
04/02/2024, 3:32 AMBen Zehavi
04/02/2024, 3:34 AMBen Zehavi
04/02/2024, 3:34 AMKevin Grismore
04/02/2024, 3:35 AMprefect deploy
with a prefect.yaml
file? or flow.deploy()
?Ben Zehavi
04/02/2024, 3:35 AM