Skip to content

Apache Airflow

This document provides a quick reference for installing and configuring Apache Airflow on Kubernetes using the official Helm chart.


Add the official Apache Airflow Helm repository:

Terminal window
helm repo add apache-airflow https://airflow.apache.org
helm repo update

Alternatively, the Helm chart source is available at:


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=require

Configure Airflow to use the secret:

data:
metadataSecretName: airflow-db

If you are using an external PostgreSQL instance, disable the embedded database:

postgresql:
enabled: false

Increase the persistence volume size as required:

persistence:
size: 10Gi

To prevent migration issues during Helm upgrades, disable Helm hooks for the user creation and database migration jobs:

createUserJob:
useHelmHooks: false
migrateDatabaseJob:
useHelmHooks: false

Specify a secret key for the Airflow webserver:

webserverSecretKey: airflow-webserver-key

Note: Store the secret key securely. Changing it after deployment will invalidate existing user sessions.