https://dagster.io/ logo
Title
d

Dusty Shapiro

09/23/2022, 3:03 PM
Helm/K8s deploy question: Is it possible to change the namespace in the
CeleryK8sRunLauncher
? I am getting 403 errors when attempting to run jobs and it appears it’s trying to create jobs in the
default
namespace.
d

daniel

09/23/2022, 3:09 PM
Hey Dusty - the way that picks up the namespace is a bit strange right now compared to our other launchers (the celery-k8s launcher could use a bit of a refresh to be brought in line with the vanilla k8s run launcher). I believe it pulls the namespace from config on the executor actually. So you can have config on your run like
"execution": {
            "config": {"job_namespace": YOUR_NAMESPACE_HERE}
       }
and then that namespace should be used for both the launched runs and the pods for the individual steps
d

Dusty Shapiro

09/23/2022, 3:14 PM
Ok, and to be clear, this is not a K8s config, this is code that’s part of the user DAG code?
d

daniel

09/23/2022, 3:14 PM
Yeah, that's run config, like what you would put on a job or put in the YAML editor in the launchpad
d

Dusty Shapiro

09/23/2022, 3:16 PM
Got it. Admittedly I haven’t developed any DAG code yet, I was just deploying using the example DAG code provided via Docker repo in the docs, but will keep this in mind when I do start to deploy our own DAG code. Thanks Daniel!
:condagster: 1
One more fast-follow; can this config value be set at a repo level, or does it have to be job level?
d

daniel

09/23/2022, 4:29 PM
I think it has to be job-level unfortunately