https://prefect.io logo
#prefect-community
Title
# prefect-community
k

Kishan

10/25/2022, 3:33 AM
I'm trying to install the vertex agent for Prefect with
pip install prefect[gcp]
as per the documentation but I'm getting
WARNING: prefect 2.6.4 does not provide the extra 'gcp'
. Maybe the docs are not up to date? Anyone know how to install the vertex agent now?
1
r

Rob Freedy

10/25/2022, 1:42 PM
Hey @Kishan! One thing to note is in 2.0 there is no concept of a vertex agent. You specify an agent and work queue without having to specify a kind of agent (there is only one): agents and work queues. If you are looking to install the latest Prefect 2.0 version the prefect-gcp collection to help run your flows, instructions can be found here: https://github.com/PrefectHQ/prefect-gcp/blob/main/README.md Are you attempting to configure a 2.0 agent or a 1.0 VertexAgent?
k

Kishan

10/25/2022, 1:58 PM
Ah okay, I'm configuring a 2.0 agent. Somehow I ended up looking at the docs for 1.0. So how do you specify where the agent goes (ECS, Kubernetes, Vertex) etc.?
j

Jeff Hale

10/25/2022, 2:14 PM
You can have your agent running anywhere you like and don’t have to tell Prefect. It will poll from the work queue that you specify when you build the deployment. If you want to run your flows in ECS, etc., you create and specify and infrastructure block as part of your deployment. https://docs.prefect.io/concepts/infrastructure/?h=ecs#ecstask
k

Kishan

10/25/2022, 2:36 PM
Oh wow thanks, do you know of any specific tutorials on how to setup the Kubernetes agent on GKE? I'll do some digging around myself, but just wanted to ask if you knew of anything that would be helpful.
j

Jeff Hale

10/25/2022, 2:50 PM
The recipes here include Agents on Azure with K8s. I don’t believe we have one for GKE yet, but should be very similar. Just use prefect-gcp library instead and make minor adjustments.
k

Kishan

10/25/2022, 3:08 PM
These are great! Thanks
👍 1
21 Views