Skip to content

Commit

Permalink
Merge pull request #26 from alexuvarovskyi/HW7_PR4
Browse files Browse the repository at this point in the history
HW7 PR4 Airflow Setup
  • Loading branch information
alexuvarovskyi authored Nov 2, 2024
2 parents b11157b + c87dd00 commit 261e41d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions orchestration/airflow/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Installing Airflow
Make sure you have installed kind and kubectl.


```bash
export WANDB_API_KEY=your_wandb_api_key
export AWS_ACCESS_KEY_ID=your_aws_access_key_id
export AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
```

```bash
export AIRFLOW_HOME=$PWD/airflow
AIRFLOW_VERSION=2.10.2

PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
airflow standalone

pip install -r requirements.txt
```



Open ui at:
http://0.0.0.0:8080

Create a k8s namespace
```bash
kubectl create namespace default2
```

Add a volume for the DAGs
```bash
kubectl create -f ./volumes/volume.yaml
```

To trigger train pipeline
Find in iu `train_dag` and run it with green arrow button


To trigger inferene pipeline
Find in iu `inference_dag` and run it with green arrow button

0 comments on commit 261e41d

Please sign in to comment.