Is there a way to pass the K8S namespace and PREFE...
# prefect-community
s
Is there a way to pass the K8S namespace and PREFECT_API_URL values to prefect deployment build ./my-favorite-function.py:validation_flow -n saman-test -t kubernetes -i kubernetes-job so I don’t have to edit the YAML file afterwards?
1
a
This might work with overrides. It definitely works with the env-variable and image. Not sure if it works with the namespace, but actually it should work as well.
Copy code
prefect deployment build ./my-favorite-function.py:validation_flow -n saman-test -t kubernetes -i kubernetes-job --override image=<your-image> --override namespace=<your-namespace> --override env.PREFECT_API_URL=<your-api-url>
s
oh, perfect, I’ll try it out! Thanks!