airflow

by joaquinito2051

Helm chartv14.0.2App 2.4.2

Apache Airflow is a tool to express and execute workflows as directed acyclic graphs (DAGs). It includes utilities to schedule tasks, monitor task progress and handle task dependencies.

About this chart

Apache Airflow packaged by Bitnami

Apache Airflow is a tool to express and execute workflows as directed acyclic graphs (DAGs). It includes utilities to schedule tasks, monitor task progress and handle task dependencies.

Overview of Apache Airflow

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/airflow

Introduction

This chart bootstraps an Apache Airflow deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/airflow

These commands deploy Airflow on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
clusterDomainKubernetes Cluster Domaincluster.local
extraDeployExtra objects to deploy (evaluated as a template)[]
commonLabelsAdd labels to all the deployed resources{}
commonAnnotationsAdd annotations to all the deployed resources{}
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the the deployment(s)/statefulset(s)["sleep"]
diagnosticMode.argsArgs to override all containers in the the deployment(s)/statefulset(s)["infinity"]

Airflow common parameters

NameDescriptionValue
auth.usernameUsername to access web UIuser
auth.passwordPassword to access web UI""
auth.fernetKeyFernet key to secure connections""
auth.secretKeySecret key to run your flask app""
auth.existingSecretName of an existing secret to use for Airflow credentials""
executorAirflow executor. Allowed values: SequentialExecutor, LocalExecutor, CeleryExecutor, KubernetesExecutor, CeleryKubernetesExecutor and LocalKubernetesExecutorCeleryExecutor
loadExamplesSwitch to load some Airflow examplesfalse
configurationSpecify content for Airflow config file (auto-generated based on other env. vars otherwise)""
existingConfigmapName of an existing ConfigMap with the Airflow config file""
dags.existingConfigmapName of an existing ConfigMap with all the DAGs files you want to load in Airflow""
dags.image.registryInit container load-dags image registrydocker.io
dags.image.repositoryInit container load-dags image repositorybitnami/bitnami-shell
dags.image.tagInit container load-dags image tag (immutable tags are recommended)11-debian-11-r45
dags.image.digestInit container load-dags image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
dags.image.pullPolicyInit container load-dags image pull policyIfNotPresent
dags.image.pullSecretsInit container load-dags image pull secrets[]
extraEnvVarsAdd extra environment variables for all the Airflow pods[]
extraEnvVarsCMConfigMap with extra environment variables for all the Airflow pods""
extraEnvVarsSecretSecret with extra environment variables for all the Airflow pods""
extraEnvVarsSecretsList of secrets with extra environment variables for all the Airflow pods[]
sidecarsAdd additional sidecar containers to all the Airflow pods[]
initContainersAdd additional init containers to all the Airflow pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for all the Airflow pods[]
extraVolumesOptionally specify extra list of additional volumes for the all the Airflow pods[]

Airflow web parameters

NameDescriptionValue
web.image.registryAirflow image registrydocker.io
web.image.repositoryAirflow image repositorybitnami/airflow
web.image.tagAirflow image tag (immutable tags are recommended)2.4.2-debian-11-r0
web.image.digestAirflow image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
web.image.pullPolicyAirflow image pull policyIfNotPresent
web.image.pullSecretsAirflow image pull secrets[]
web.image.debugEnable image debug modefalse
web.baseUrlURL used to access to Airflow web ui""
web.existingConfigmapName of an existing config map containing the Airflow web config file""
web.commandOverride default container command (useful when using custom images)[]
web.argsOverride default container args (useful when using custom images)[]
web.extraEnvVarsArray with extra environment variables to add Airflow web pods[]
web.extraEnvVarsCMConfigMap containing extra environment variables for Airflow web pods""
web.extraEnvVarsSecretSecret containing extra environment variables (in case of sensitive data) for Airflow web pods""
web.extraEnvVarsSecretsList of secrets with extra environment variables for Airflow web pods[]
web.containerPorts.httpAirflow web HTTP container port8080
web.replicaCountNumber of Airflow web replicas1
`web.livenessProbe.enabl

Deploy airflow with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has airflow on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartairflow is pinned at v14.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply