we are trying to move to dagster on k8s, but all r...
# deployment-kubernetes
d
we are trying to move to dagster on k8s, but all runs are giving an error:
Value in Mapping mismatches expected for key dagster/image. Expected value of type <class 'str'>. Got value of type <class 'NoneType'>
I tried explicitly setting the tag for the image to no avail. The example repo/job works though. Any idea what could be going on?
a
How are you deploying Dagaster to k8s? Are you using the helm chart?
d
Yes
a
can you share your values.yaml ?
d
only thing I configured was the ingress, everything else is the default
a
How are you deploying the code to kubernetes then? how did you configure the user deployments?
d
modifying the workspace.yml to add the new location
(after I get the first one working, this is on my list to automate)
the location shows up, things just don't run
a
Are the deployments shown has healthy in dagit?
Can you post a screenshot of where you see this error?
d
yup. That deployment was created with kubecutl create deployment
Can't do that, not on the same network 😞 I can retype anything you want though
a
In dagit, under the tab “deployment” are they all shown has healthy?
d
Looking at a green loaded
and all the jobs/assets/sensors etc appear
and the sensor runs, it just can't start the runs
last functions in the call stack are: • add_run_tags • add_run_tags • mapping_param • _check_mapping_entries_
(first add run tags is in instance/_init_.py
second is in sql_run_storage.py
a
To me it looks like a misconfiguration. are you using
dagster-k8s/config
tag? or tags in general?
d
No, do I need to?
a
no, no necessarily, but you should really add your user-deployments using helm as well. that would simplify things a lot. Do you get the same error when running locally?
d
locally it just uses local executor, and it works fine (no docker image needed)
a
Yeah… try to use helm to configure your user-deployments. this will automatically fill a lot of boilerplate config
d
dagster-user-deployments helm chart?
d
I'll give it a whirl
Deployed. Do I still have to update the workspace configmap to add the deployment?
a
no, helm will do everything for you
d
No idea what in there fixed it, but that worked. Thank you