Skip to content

FlavioF/airflow-kubernetes-pod-operator-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this repo

A simple sample on how to use Google Composer and Kubernetes Pod Operator

airflow-kubernetes-pod-operator

A simple sample on how to use Airflow with KubernetesPodOperator base on Airflow on Kubernetes (Part 1): A Different Kind of Operator

Usefull links:

How to use this sample

  • Prepare deploy
mkdir sample
find -name '*.py' -o -name '*.sql' | xargs cp -t sample/
  • Download and prepare requirements (if need)
mkdir pkg
pip install --install-option="--install-lib=$PWD/pkg" -r requirements.txt
mv pkg/ sample/pkg
  • Deploy dag
gcloud composer environments storage dags import \
                            --project <project> \
                            --environment <cluster> \
                            --location <location> \
                            --source sample
  • Check your Airflow Web UI :)

About

A simple sample on how to use Airflow with KubernetesPodOperator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages