Hi, I am using self hosted prefect server/workers ...
# ask-community
t
Hi, I am using self hosted prefect server/workers via helm charts. I am using
kubernetes
type work pool and trying to pass env variables using the method described here (via prefect yaml) -> https://github.com/zzstoatzz/prefect-pack/blob/4cfc53ae94c6bd65ff0eefcb1c5ce72b48446179/prefect.yaml#L106 But I always get env variable not found error, anything I might be missing here ?
n
hi @Tushar Mahajan ! i can take a look at this later and make sure something is not behaving unexpectedly here
t
Sure, thanks @Nate also I could not find any documentation around passing env variables to kubernetes jobs spawned by prefect worker, envFrom did not work for me, even prefect blocks gave 404, ultimately I had to hard code env variables/secrets in the work pool UI