Lukas N.
08/05/2020, 1:17 PM<http://vault.security.banzaicloud.io/vault-addr|vault.security.banzaicloud.io/vault-addr>:
<http://vault.security.banzaicloud.io/vault-role|vault.security.banzaicloud.io/vault-role>:
Looking at the code of the agent the job_spec
is hardwired and I cannot modify it. I've also checked the KubernetesJobEnvironment
which seems like a way to go for a custom job_spec.yaml
file. But in this case, the environment values specified in the prefect Kubernetes agent prefect agent start kubernetes --env NAME=value
don't get passed to the custom job. They only get passed to the first Job that creates the custom job. Is there another way to have both custom annotations on Jobs and environment values passed from prefect kubernetes agent?josh
08/05/2020, 1:21 PMLukas N.
08/05/2020, 1:27 PMprefect agent start kubernetes --env NAME=...
with different environment variables. They need to be passed to the job. If I use LocalEnvironment
, the initial job doesn't have access to the vault. If I use KubernetesJobEnvironment
the values don't get injected into the environment of the second (actual) job.