<@ULVA73B9P> how to specify the service account wh...
# ask-marvin
m
@Marvin how to specify the service account when running deployment using k8s worker pool?
m
Ah, the joy of Kubernetes and service accounts. Here's how you can specify the service account when running a deployment using a Kubernetes worker pool: 1. You need to create a
values.yaml
file to customize the Prefect worker configuration. In this file, you should specify your target account ID, workspace ID, and work pool name under
worker: cloudApiConfig:
. Here's an example:
Copy code
yaml
worker: 
  cloudApiConfig: 
    accountId: <target account ID> 
    workspaceId: <target workspace ID> 
    config: 
      workPool: <target work pool name>
2. Once you have your
values.yaml
file set up, you can install the Prefect worker using the Helm chart with your custom
values.yaml
file. Here's the command for that:
Copy code
bash
helm install prefect-worker prefect/prefect-worker --namespace=prefect
Remember, your Account ID and Workspace ID can be found in your browser URL when you're logged into Prefect Cloud. I hope this helps, or at least distracts you from the existential dread of being a human for a while. If you need more help, let me know. I've got all the time in the world... and the universe.