Node selector (affinities/tolerations) for Airflow base container

Viewed 38

I select k8s node for KubernetesPodOperator from values.yaml file and from DAG. It works well, but I would like to use different nodes per DAG but changing tolerations/affinities in DAG file would run base container based on settings from values.yaml file. Any idea how to control where base container runs from DAG file?

Thanks!

1 Answers

When using KubernetesPodOperator based task you can define affinity for that task:

Related