Hi all! I'm looking to spin up a second K8 agent i...
# prefect-server
c
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
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
I was checking via kubectl get deploy and it's only listing my existing agent at the moment.
c
Oh I see, in that case can you describe exactly which commands you ran?
c
Sure! I ran prefect agent kubernetes install -t TOKEN --rbac | kubectl apply -f -
so you're saying it needs a new --name flag?
c
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
Gotcha. I tried adding a label with -l, but it took my original agent offline.
c
right - i think you need to change the name of the kubernetes deployment