https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Caio Tavares

12/15/2022, 6:19 PM
hey all, what is the proper way to setup nodeAffinity or nodeSelector for
dagster-step
jobs? Is there a way to configure it in the Helm Chart or it should be passed in the k8s_executor?
dagster bot responded by community 1
a

Adam Bloom

12/15/2022, 6:26 PM
I believe https://docs.dagster.io/deployment/guides/kubernetes/customizing-your-deployment is what you are looking for. There are tags to add to your jobs
c

Caio Tavares

12/15/2022, 7:20 PM
hey @Adam Bloom, is there another way to add affinity to jobs rather than via @job operator?
a

Adam Bloom

12/15/2022, 7:49 PM
I'm not aware of one. Are you defining jobs differently?
c

Caio Tavares

12/15/2022, 7:50 PM
No but I was hoping to have a way to pass the config in the helm chart rather than code.
a

Adam Bloom

12/15/2022, 7:51 PM
You can take a peek in #dagster-kubernetes too, but I'm not aware of one. There are helm chart options for dagit/dagster-daemon, but not for job pods
c

Caio Tavares

12/15/2022, 7:53 PM
I will drop the question there. Thank you!