https://prefect.io logo
Title
m

Michał Augoff

07/11/2022, 6:00 PM
hi all, 2.0 question, is it possible to set certain k8s job properties at the agent level (e.g. service account, namespace) as it is possible in 1.0 or everything needs to be configured via
Deployment
’s KubernetesFlowRunner properties?
r

redsquare

07/11/2022, 6:05 PM
I can access this info via prefect.context.get_run_context() inside the job
m

Michał Augoff

07/11/2022, 6:08 PM
I do not necessarily need access to this, just want to take some burden of my users, so that some parameters don’t have to be defined inside each Deployment
r

redsquare

07/11/2022, 6:17 PM
Ah sorry misread your Q, I have a similar issue with secrets and having to customise patch them in for each deployment (spec)
👍 1
k

Kevin Kho

07/11/2022, 6:25 PM
I think because we have one agent interface now, this is not possible at the moment. I think it has to go through the DeploymentSpec
m

Michał Augoff

07/11/2022, 6:35 PM
that was my assumption, thanks for confirming Kevin 🙏