Skip to content

Commit

Permalink
Module 4 clean (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
truskovskiyk authored Jul 15, 2024
1 parent 522605a commit 4e3bace
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 211 deletions.
23 changes: 10 additions & 13 deletions module-4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,40 @@

Create kind cluster

```
kind create cluster --name ml-in-production-course-week-4
```bash
kind create cluster --name ml-in-production
```

Run k9s
Run k9s

```
```bash
k9s -A
```

# Airflow

## Deploy airflow locally



```
export AIRFLOW_HOME=$PWD/airflow-home
```bash
export AIRFLOW_HOME=$PWD/airflow_pipelines
```

```
AIRFLOW_VERSION=2.7.3
```bash
AIRFLOW_VERSION=2.9.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}"
pip install apache-airflow-providers-cncf-kubernetes==7.9.0
pip install apache-airflow-providers-cncf-kubernetes==8.3.3
```


1. Run standalone airflow

```
export AIRFLOW__CORE__LOAD_EXAMPLES=False
airflow standalone
```

2. Create storage
2. Create storage

```
kubectl create -f airflow-volumes.yaml
Expand Down
5 changes: 5 additions & 0 deletions module-4/airflow_pipelines/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
logs
airflow.cfg
airflow.db
standalone_admin_password.txt
webserver_config.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
95 changes: 0 additions & 95 deletions module-4/kfp-inference-pipeline_v1.py

This file was deleted.

103 changes: 0 additions & 103 deletions module-4/kfp-training-pipeline_v1.py

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit 4e3bace

Please sign in to comment.