Based on the information I found, here are some pointers:
1. Upgrading from agents to workers significantly enhances the experience of deploying flows. It simplifies the specification of each flow's infrastructure and runtime environment. A worker is the fusion of an agent with an infrastructure block. Like agents, workers poll a work pool for flow runs that are scheduled to start. Like infrastructure blocks, workers are typed - they work with only one kind of infrastructure.
More Info
2. You can verify your Prefect worker deployment using the command
kubectl get pods -n prefect
. You should see the Prefect worker pod running.
More Info
However, I couldn't find specific information on how to specify parameters for HorizontalPodAutoscaler & Roles in the new worker setup. It might be a good idea to check the official Prefect documentation or their community forum for more detailed guidance.