https://prefect.io logo
Title
n

Nitin Karolla

05/18/2021, 2:11 PM
Hi Everyone, Prefect if awesome!! I wanted to share my excitement with my team, by demoing prefect running on our k8s cluster. Before I do that, I am trying to get this thing work on local k8s. So I have followed the helm instructions on official documentation this is where I stand. I have selected 2 replicas for the agent, they spin up so far. But only 1 agents shows up in the UI? Any idea why that would happen and what I am missing here? Thanks in Advance!!
1
k

Kevin Kho

05/18/2021, 2:33 PM
Hi @Nitin Karolla! It’s likely these just look identical to Cloud and register as 1 agent. Really though you shouldn’t need more than 1 agent.
For this specific resource. You can have other agents for other resources.
n

Nitin Karolla

05/18/2021, 3:45 PM
Thanks for your response @Kevin Kho . Okay, I found something same online here - https://github.com/PrefectHQ/ui/issues/384. I guess this is what you were referencing. Also, I would not need more than 1 agent for demo purpose or in production setting as well? Also what do you mean when you say “You can have other agents for other resources.” I am sorry, very new to prefect and terminology used here.
k

Kevin Kho

05/18/2021, 3:47 PM
As in if you had another agent for another EC2 instance or something. The agent is a pretty lightweight process and you shouldn’t need more than 1 replica….although I suppose it wouldn’t hurt now that I think about it. If one goes down, you’ll still see the other one.
n

Nitin Karolla

05/18/2021, 3:52 PM
My idea of Prefect Agent was like of a build agent, that does the work, although in K8s case, it’s the one thats initiates jobs. Is that right? I see what you meant. Thank you.
👍 1
k

Kevin Kho

05/18/2021, 3:53 PM
It is the one that kicks off the jobs but it’s a lightweight process and can handle concurrency