<@ULVA73B9P> I've used the official prefect helm c...
# ask-marvin
p
@Marvin I've used the official prefect helm charts to set up a k8s Worker. When the worker starts, it creates a Work Pool with
default
namespace. How can I change the work pool namespace?
m
To change the namespace of the work pool for your Kubernetes Worker, you'll need to provide the specific configuration during the creation of the work pool or by updating it if it already exists. However, directly changing the namespace of an existing work pool is not explicitly mentioned in the documentation excerpts. Therefore, you should create a new work pool with the desired namespace and direct your Kubernetes Worker to use that work pool. To manage work pools, you have the following options: 1. Use the Prefect UI. 2. Use Prefect CLI commands. 3. Use the Prefect REST API. 4. Use the Terraform provider for Prefect Cloud. The
prefect work-pool create
CLI command is used to create a new work pool, where you can specify the infrastructure type and other optional parameters. Unfortunately, the provided documentation excerpts do not detail the step-by-step process of setting a Kubernetes-specific namespace during work pool configuration. Please visit the Prefect Work Pools documentation for more comprehensive information. If you need help with using the CLI command to create a work pool, please let me know, and I can find a relevant code example for you.
k
Hey, i have deployed prefect using helmchart as well. You can modify the values.yaml by manually changing
namespaceOverride
in the file. Hope this helps!