Nolan Nichols
11/17/2022, 12:06 AMk8s_job_executor
and specifying tolerations
/ nodeSelector
tags so that pods will run on a specific node group.
This works as expected for the run
pod where I can see that my tags
were properly applied in the pod's yaml file and the pod runs on a node in the correct node group; however, the step
pods do not execute on the correct node group and when I examine the step
pod yaml file the tolerations
/ nodeSelector
tags are not present.
Is this the expected behavior? Is there another way to add tags to individual step pods?metsim_assets_job = dagster.define_asset_job(
name="metsim_asset_job",
selection=dagster.AssetSelection.groups("metsim"),
executor_def=k8s_job_executor,
tags={
"dagster-k8s/config": {
"container_config": {
"resources": {
"requests": {"cpu": "8000m", "memory": "10Gi"},
"limits": {"cpu": "8000m", "memory": "10Gi"},
},
},
"pod_template_spec_metadata": {
"annotations": {
"<http://cluster-autoscaler.kubernetes.io/safe-to-evict|cluster-autoscaler.kubernetes.io/safe-to-evict>": "true"
}
},
"pod_spec_config": {
"tolerations": [
{"key": "mazeApp", "value": "dagster", "effect": "NoSchedule"}
],
"nodeSelector": {"AppUsed": "dagster"}
},
},
},
)
daniel
11/17/2022, 12:45 AMNolan Nichols
11/17/2022, 12:50 AMop
in my graph I would add the same tags that I am currently adding just at the dagster.define_asset_job
level?daniel
11/17/2022, 12:51 AMNolan Nichols
11/17/2022, 12:52 AM