https://prefect.io logo
Title
c

Charles Liu

03/18/2021, 10:56 PM
Hi all! I'm looking to spin up a second K8 agent in the same cluster as a dev agent, but it does not seem to appear when following the kubectl install options. Any pointers?
c

Chris White

03/18/2021, 11:01 PM
Hey Charles! When you say “appear”, do you mean in the UI? If so, I suggest changing the name of your second agent with the
--name
flag on
prefect agent start
within the manifest that
kubectl install
produces
c

Charles Liu

03/18/2021, 11:03 PM
I was checking via kubectl get deploy and it's only listing my existing agent at the moment.
c

Chris White

03/18/2021, 11:03 PM
Oh I see, in that case can you describe exactly which commands you ran?
c

Charles Liu

03/18/2021, 11:24 PM
Sure! I ran prefect agent kubernetes install -t TOKEN --rbac | kubectl apply -f -
so you're saying it needs a new --name flag?
c

Chris White

03/18/2021, 11:25 PM
No, I don’t think that would change it — you might need to edit the output of the install command; it’s possible k8s already saw a prefect-agent deployment and updated it instead of creating a new one
c

Charles Liu

03/19/2021, 1:15 AM
Gotcha. I tried adding a label with -l, but it took my original agent offline.
c

Chris White

03/19/2021, 1:16 AM
right - i think you need to change the name of the kubernetes deployment