Jared Noynaert
07/20/2021, 3:57 PMKevin Kho
Jared Noynaert
07/20/2021, 4:50 PMkubectl describe deployment
below to clarify:
Environment Variables from:
prefect-agent-dev-env-secrets Secret Optional: false
prefect-agent-env-vars ConfigMap Optional: false
Environment:
CONFIG_HASH: cb7a3cd7e8afc0b4592735e5a779d0f7-0cf6bb6be4b7b1554f6b881828637963
None of those env vars are making it to the actual execution. We can exec into the agent and read the env vars correctly; when we exec into either of the two jobs spawned by each run and check the env vars we see all of the PREFECT___
env vars populated but not the custom ones available on the agentprefecthq/prefect:0.15.1-python3.8
imageKevin Kho
PREFECT__
env variable are only copied in some cases as well so this is expected behavior for k8s. You can pass env variables when you start your agent with the --env
flag and those will be added to flow runs.Jared Noynaert
07/20/2021, 7:22 PM