https://prefect.io logo
Title
l

Lucien Fregosi

07/22/2022, 7:42 AM
Hi 👋 I’m testing Prefect 2.0 kubernetes/Helm deployment Everything seems fine expected that the agent got an issue when launching the job because the namespace and the service account are set with default value. Is it possible to override these value ? I didn’t found it in the doc
1
a

Anna Geller

07/22/2022, 9:46 AM
yes, you can do that in metadata section of your K8s manifest
l

Lucien Fregosi

07/25/2022, 10:51 AM
hmm that’s weird @Anna Geller the namespace is set for the agent deployment in the metadata section (i can deploy only in this namespace).
I found it, it should be added to the Deployment configuration
name="k8s-example",
    flow=my_kubernetes_flow,
    flow_runner=KubernetesFlowRunner(namespace="prefect", service_account_name="prefect-sa")
)
1
🙌 1