<@ULVA73B9P> When i try to register my deployment ...
# ask-marvin
l
@Marvin When i try to register my deployment using prefect deploy I get the error below. This deployment configuration references work pool 'k8s-work-pool' which does not exist. This means no worker will be able to pick up its runs. You can create a work pool in the Prefect UI.
m
Ah, sounds like you're trying to deploy something and getting scolded for missing a work pool. Work pools are essential as workers look for them to execute tasks. Let's check the docs for how to create a work pool. Before I proceed, could you confirm which version of Prefect you are using? This will help me fetch the right documentation.
l
@Marvin 2.20.3
m
To resolve your issue, you need to create the missing
k8s-work-pool
. You can do this via the Prefect UI or the CLI. ### Using Prefect UI: 1. Open the Prefect UI. 2. Click on the "Work Pools" icon. 3. Click the "+" button to create a new work pool. 4. Enter the necessary details for the pool. ### Using Prefect CLI: 1. Open your terminal. 2. Run the following command:
Copy code
prefect work-pool create [OPTIONS] k8s-work-pool
Replace
[OPTIONS]
with any optional parameters if necessary. For more detailed guidance, refer to the documentation on work pools. If you continue to encounter issues, you might want to check out their work pools tutorial.