├── values.yml └── README.md /values.yml: -------------------------------------------------------------------------------- 1 | redis: 2 | enabled: false 3 | 4 | postgresql: 5 | enabled: false 6 | 7 | rbac: 8 | create: true 9 | createSCCRoleBinding: true 10 | 11 | data: 12 | brokerUrl: redis://:airflow@airflow-redis 13 | metadataConnection: 14 | host: airflow-psql 15 | user: postgres 16 | pass: airflow 17 | 18 | dags: 19 | gitSync: 20 | enabled: true 21 | repo: https://github.com/fjcloud/airflow-dags.git 22 | branch: main 23 | subPath: / 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Deploy Airflow on OpenShift 2 | 3 | ## Prepare namespace 4 | 5 | ```shell 6 | oc new-project airflow 7 | oc new-app -e POSTGRESQL_ADMIN_PASSWORD=airflow --name airflow-psql postgresql:13-el9 8 | oc new-app -e REDIS_PASSWORD=airflow --name airflow-redis redis:6-el9 9 | ``` 10 | 11 | ## Deploy Airflow 12 | 13 | ```shell 14 | helm repo add apache-airflow https://airflow.apache.org 15 | helm upgrade --install airflow apache-airflow/airflow --namespace airflow --values values.yml 16 | ``` 17 | ## Expose Airflow 18 | 19 | ```shell 20 | oc expose svc/airflow-webserver 21 | oc patch route airflow-webserver --patch '{"spec":{"tls":{"termination":"edge","insecureEdgeTerminationPolicy":"Redirect"}}}' 22 | ``` 23 | --------------------------------------------------------------------------------