https://prefect.io logo
v

Vadym Dytyniak

08/30/2023, 12:21 PM
Hello. Could you please explain how to specify service_account_name in prefect.yaml in oreder to deploy the flow? I know that I should use job_variable, but not sure about the correct format. Thanks.
I think here is the answer:
Copy code
deployments:
  - name: sample
    entrypoint: sample.py:sample
    work_pool:
        name: default-k8s-pool
        work_queue_name: k8s-queue
        job_variables:
          service_account_name: sample-poc
1
m

Marty Ko

09/06/2023, 9:42 AM
I’m very new to prefect but it took me an hour to this solution. How did you come up with this solution? I couldn’t find it mentioned in the doc at all…
v

Vadym Dytyniak

09/06/2023, 9:44 AM
@Marty Ko Experiments 😀
🫡 1