Kirk Stennett
01/07/2022, 9:40 PM0.11.13
and attempting to get k8s pod affinity working at the solid level. I'm currently using something like:
tags = {
"dagster-k8s/config": {
"pod_spec_config": {
"affinity": {
"nodeAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "lifecycle",
"operator": "In",
"values": ["spot"],
}
]
}
]
}
}
}
}
}
}
and it's still attaching to some ON_DEMAND nodes that I have set up. Any idea why? Or is this potentially a known bug this older version? I'm using the K8sJobExecutor as well, not sure if that could be problematic toolifecycle=spot
johann
01/07/2022, 9:46 PMKirk Stennett
01/07/2022, 9:52 PMjohann
01/07/2022, 9:59 PMI see nothing in the jobs for the job or runJust to confirm, you’re looking at the Job created for the solid that you’ve tagged?
Kirk Stennett
01/07/2022, 10:02 PMdescribe job
and saw nothing related to affinity. Is there some other place I should validate?johann
01/07/2022, 10:06 PMk8s_job_executor
in 0.11.13Kirk Stennett
01/07/2022, 10:07 PMjohann
01/07/2022, 10:09 PM0.11.13
, it looks like if you set that tag on the pipeline, it will be applied to all solids and then run worker. Which is probably not quite what you wantKirk Stennett
01/07/2022, 10:13 PMjohann
01/07/2022, 10:15 PMback on the update trackThe executor has been getting more stable, but there have been some recent bugfixes even up to 0.13.13. There’s no migration required from 0.12 to 0.13, so you could consider the jump
Kirk Stennett
01/07/2022, 10:19 PMjohann
01/07/2022, 10:19 PMKirk Stennett
01/07/2022, 10:24 PMjohann
01/07/2022, 10:27 PMdaniel
01/07/2022, 10:28 PMKirk Stennett
01/07/2022, 10:28 PMdaniel
01/07/2022, 10:28 PMjohann
01/07/2022, 10:29 PM