LocalKubernetes Executor

Note

As of Airflow 2.7.0, you need to install the cncf.kubernetes provider package to use this executor. This can be done by installing apache-airflow-providers-cncf-kubernetes>=7.4.0 or by installing Airflow with the cncf.kubernetes extras: pip install 'apache-airflow[cncf.kubernetes]'.

The LocalKubernetesExecutor allows users to simultaneously run a LocalExecutor and a KubernetesExecutor. An executor is chosen to run a task based on the task’s queue.

LocalKubernetesExecutor provides the capability of running tasks with either LocalExecutor, which runs tasks within the scheduler service, or with KubernetesExecutor, which runs each task in its own pod on a kubernetes cluster.

Was this entry helpful?