https://prefect.io logo
Title
t

Tony Popov

09/22/2022, 9:49 PM
Another unrelated k8s deployment question: 1.
prefect-cli
talks to
orion
via kubectl port-forward 2.
prefect-agent
knows about
orion
via the k8s service (setting api url env var) Hence the question: how does
prefect deploy
command interact with an
prefect-agent
if
orion
does not know about agent as well?
1
c

Christopher Boyd

09/22/2022, 9:50 PM
You would configure the prefect agent with an api url that points to Orion
And locally you would also configure your api url to Orion
t

Tony Popov

09/22/2022, 9:51 PM
yes exactly, so agent registers itself in Orion right?
c

Christopher Boyd

09/22/2022, 9:51 PM
No, you configure it when you deploy the agent
It doesn't register itself so to speak unless we are saying the same thing in different ways
You deploy an agent and set the api url - this would be an env var for the pod
1
Agents are outbound connections only , they are polling Orion for work
t

Tony Popov

09/22/2022, 9:54 PM
ok I see
thanks that’s also very helpful