Hi
@Minakshi - they are not, unless you're using the
Prefect Helm chart; it's certainly fine to run the agent on the same machine as Prefect Server (I do this frequently myself) with the caveat that if you're running a
LocalAgent or without any external infrastructure like a managed
Dask cluster you run the risk of using up all the resources on that machine, which could be troublesome for both your flows and your Server installation.
The advantages to separating those pieces of infrastructure, whether in a K8s cluster or something else, are that you can individually scale them as needed, both as you write and run more flows and as the resource needs of your flows increase.