Skip to content

ckljohn/airflow-on-EKS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airflow-on-EKS

This is an implementation of airflow on AWS EKS with official Helm chart.

Please refer to https://airflow.apache.org/docs/helm-chart/stable/index.html for more details.

AWS EFS is used as dags/logs persistent volume. You can setup a EFS provisioner with this guide. https://github.com/kubernetes-incubator/external-storage/tree/master/aws/efs

Customized git-sync sidecar is used to deploy Airflow Dags from remote repo to Airflow server for the following reasons.

  1. Not all files under the DAGs repo need to be deployed to Airflow server.
  2. If files under dags folder in Airflow server are changed, git-sync may not be able to pull from remote repo.

K8s deployment

Requirements

Deploy

kubectl apply -f k8s_config/

Local Deployment

  1. Copy .local.env to .env and update the values in it.

  2. Run for the first time.

    docker volume create --name=airflow_db
  3. Run

    docker compose up -d
  4. Wait for webserver and scheduler to be ready (1st time may take longer and may require restart)

  5. Go to http://localhost:8080

    username: airflow

    password: airflow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published