GithubHelp home page GithubHelp logo

himewel / kind-airflow Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 16 KB

Apache Airflow helm chart environment running on local kubernetes (kind) with docker abstraction

Dockerfile 24.11% Makefile 29.87% Shell 30.05% Python 15.96%
helm kubernetes airflow docker

kind-airflow's Introduction

Kind Airflow

Docker Apache Airflow Kubernetes Helm

This repo presents a set of tools to start with Apache Airflow helm chart.

Repo structure

├── dags/               <- airflow python dag files
├── include/            <- python imports to dag files
├── plugins/            <- airflow plugins
├── tools/              <- bash scripts and Dockerfile to manipulate k8s
├── Dockerfile          <- docker container to release the dag files
├── packages.txt        <- apt packages to be installed in the docker build
├── requirements.txt    <- python packages to be installed in the docker build
└── settings.yaml       <- helm settings of airflow helm chart

How to start

  • Check if your environment has docker installed and install it if not;
  • To setup the k8s cluster and Apache Airflow helm chart run the following commands:
# build the docker image to manage the cluster
make build
# create a cluster and install the helm chart
make start \
    CLUSTER=<YOUR CLUSTER NAME> \
    RELEASE=<YOUR K8S NAMESPACE>
  • Check the webserver status by forward the UI from the k8s pod:
make forward-webserver \
    PORT=<PORT TO FORWARD THE WEB UI> \
    RELEASE=<YOUR K8S NAMESPACE>
  • The same can be done with flower:
make forward-flower \
    PORT=<PORT TO FORWARD THE WEB UI> \
    RELEASE=<YOUR K8S NAMESPACE>
  • To delete the cluster and remove the k8s namespace:
make stop \
    RELEASE=<YOUR K8S NAMESPACE>
  • To release a new version of the dag files, build the Dockerfile and load it to kind:
docker build . --tag <YOUR IMAGE NAME>:<YOUR IMAGE TAG>
make start \
    CLUSTER=<YOUR CLUSTER NAME> \
    DOCKERIMAGE=<YOUR IMAGE NAME>:<YOUR IMAGE TAG>
    RELEASE=<YOUR K8S NAMESPACE>

kind-airflow's People

Contributors

himewel avatar

Watchers

James Cloos avatar  avatar

Forkers

stevealliance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.