Home > Back-end >  Airflow with KubernetesExecutor workers (EKS) and webserver scheduler on EC2
Airflow with KubernetesExecutor workers (EKS) and webserver scheduler on EC2

Time:11-24

I wanted to know if it's possible to setup a KubernetesExecutor on Airflow but having the webserver and scheduler running on an EC2?

Meaning that tasks would run on Kubernetes pods (EKS in my case) but the base services on a regular EC2.

I tried to find information about the issue but failed short...

the following quote is from Airflow's docs, and it's the reason I'm asking this question

KubernetesExecutor runs as a process in the Airflow Scheduler. The scheduler itself does not necessarily need to be running on Kubernetes, but does need access to a Kubernetes cluster.

Thanks in advance!

CodePudding user response:

Yes, this is entirely possible.

You just need to run your airflow scheduler and airflow webserver on EC2 and configure the EC2 instance to have all the necessary acces (via service account likely - but this is your decision and deployment configuration) to be able to spin pods on your EKS cluster.

Nothing special about it besides that you will have to learn how to run and configure the components to talk to each other - there are no ready-to-use recipes, you will have to simply follow theconfiguration parameters of Airflo, and authentication schemes that you need to have.

  • Related