https://prefect.io logo
Title
n

Nuno Silva

09/21/2020, 12:07 PM
Hi. When using
DaskKubernetesEnvironment
how to setup the k8s namespace in which we want the job to run in the cluster? I'm using
scheduler_spec_file/worker_spec_file
and in the yaml files I set the
metadata:namespace: <name>
. But for the job itself it starts in the
default
namespace
j

josh

09/21/2020, 1:27 PM
Hi @Nuno Silva have you also tried setting a namespace on your Kubernetes agent with the
--namespace
option? I’m thinking maybe it’s the first prefect job that is being spun up in the default namespace
n

Nuno Silva

09/21/2020, 1:32 PM
Will try and report back. Thanks
it works, thanks!