Apache Airflow
This document provides a quick reference for installing and configuring Apache Airflow on Kubernetes using the official Helm chart.
Installation
Section titled “Installation”Add the Helm Repository
Section titled “Add the Helm Repository”Add the official Apache Airflow Helm repository:
helm repo add apache-airflow https://airflow.apache.orghelm repo updateAlternatively, the Helm chart source is available at:
Configure the Metadata Database
Section titled “Configure the Metadata Database”Create a Kubernetes Secret containing the metadata database connection string.
The secret must contain a key named connection with the following format:
postgresql://username:password@inmadbs-pgbouncer.inma-postgresql.svc:5432/airflow?sslmode=requireConfigure Airflow to use the secret:
data: metadataSecretName: airflow-dbDisable the Embedded PostgreSQL Database
Section titled “Disable the Embedded PostgreSQL Database”If you are using an external PostgreSQL instance, disable the embedded database:
postgresql: enabled: falseConfigure Persistent Storage
Section titled “Configure Persistent Storage”Increase the persistence volume size as required:
persistence: size: 10GiFix Database Migration Jobs
Section titled “Fix Database Migration Jobs”To prevent migration issues during Helm upgrades, disable Helm hooks for the user creation and database migration jobs:
createUserJob: useHelmHooks: false
migrateDatabaseJob: useHelmHooks: falseConfigure the Webserver Secret Key
Section titled “Configure the Webserver Secret Key”Specify a secret key for the Airflow webserver:
webserverSecretKey: airflow-webserver-keyNote: Store the secret key securely. Changing it after deployment will invalidate existing user sessions.