Brennan Tolman
07/07/2023, 10:40 PMprefect init
and created a git
prefect project, which output a prefect.yaml file. In the prefect.yaml file, I set the work-pool to default-agent-pool
(the one that comes with prefect server) and my work-queue to default
. Then, when I run prefect deploy
with I get the following message: You've chosen a work pool with type 'prefect-agent' which cannot be used for project-style deployments. Let's pick another work pool to deploy to.
Then it walks me through setting up another work pool, where I choose a work pool of type process
. With a new work pool set up, I then attempted to create an agent for the pool, using the same process I used to create one for the default-agent-pool
. However, this time when I try to create a new agent and assign it to the pool and queue, I get the following error:
user@myPC:~$ helm install default-agent-1 prefect-agent/
Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: Role "prefect-agent" in namespace "my-namespace" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "<http://meta.helm.sh/release-name|meta.helm.sh/release-name>" must equal "default-agent-1" : current value is "default-agent-0"
I have tried adjusting the service account name override and other fields, but it doesn't seem to be fixing it. Do you know how to fix this?Marvin
07/07/2023, 10:41 PM