You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2021/01/21 20:20:03 UTC
[airflow] 38/44: Update chart readme to remove astronomer
references (#13210)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 126c5ea2e1ce3186a8e2ac582ec6c9786ff787df
Author: dstandish <ds...@users.noreply.github.com>
AuthorDate: Mon Dec 21 05:12:19 2020 -0800
Update chart readme to remove astronomer references (#13210)
(cherry picked from commit a3cc78dc16bf228901ba64e65d202d4685bf4fc7)
---
chart/README.md | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git a/chart/README.md b/chart/README.md
index c5106be..7a7c81b 100644
--- a/chart/README.md
+++ b/chart/README.md
@@ -286,18 +286,12 @@ Confirm it's up:
kubectl cluster-info --context kind-kind
```
-**Add Astronomer's Helm repo:**
-
-```
-helm repo add astronomer https://helm.astronomer.io
-helm repo update
-```
**Create namespace + install the chart:**
```
kubectl create namespace airflow
-helm install airflow --n airflow astronomer/airflow
+helm install airflow --n airflow .
```
It may take a few minutes. Confirm the pods are up:
@@ -312,25 +306,38 @@ to port-forward the Airflow UI to http://localhost:8080/ to confirm Airflow is w
**Build a Docker image from your DAGs:**
-1. Start a project using [astro-cli](https://github.com/astronomer/astro-cli), which will generate a Dockerfile, and load your DAGs in. You can test locally before pushing to kind with `astro airflow start`.
+1. Create a project
- mkdir my-airflow-project && cd my-airflow-project
- astro dev init
+ ```shell script
+ mkdir my-airflow-project && cd my-airflow-project
+ mkdir dags # put dags here
+ cat <<EOM > Dockerfile
+ FROM apache/airflow
+ COPY . .
+ EOM
+ ```
2. Then build the image:
- docker build -t my-dags:0.0.1 .
+ ```shell script
+ docker build -t my-dags:0.0.1 .
+ ```
3. Load the image into kind:
- kind load docker-image my-dags:0.0.1
+ ```shell script
+ kind load docker-image my-dags:0.0.1
+ ```
4. Upgrade Helm deployment:
- helm upgrade airflow -n airflow \
- --set images.airflow.repository=my-dags \
- --set images.airflow.tag=0.0.1 \
- astronomer/airflow
+ ```shell script
+ # from airflow chart directory
+ helm upgrade airflow -n airflow \
+ --set images.airflow.repository=my-dags \
+ --set images.airflow.tag=0.0.1 \
+ .
+ ```
## Contributing