Lukas N.01/28/2021, 2:56 PM
. Kubernetes agent creates job specifications with wrong command.
. It's about the Kubernetes agent and how it creates the kubernetes job yaml specification. So this is the critical part of the yaml specification we have in `0.13.19`:
And this is the same part in
spec: containers: - args: - prefect execute flow-run command: - /bin/sh - -c
This is a problem for us, as we use vault, which injects some initContainers that load secrets and in the end end up running this command in the pod. Again first the working version
spec: containers: - args: - prefect - execute - flow-run command: - /bin/sh - -c
and now the broken version
- args: - /bin/sh - -c - prefect execute flow-run command: - /vault/vault-env
- args: - /bin/sh - -c - prefect - execute - flow-run command: - /vault/vault-env
doesn't work, because it runs
which only prints help message and doesn't actually execute the flow.
/bin/sh -c prefect
which is based on the one in Prefect https://github.com/PrefectHQ/prefect/blob/0.14.4/src/prefect/agent/kubernetes/job_template.yaml. I didn't notice that the
was removed which was causing these issues.