airflow
by fajarhide
Apache Airflow is a platform to programmatically author, schedule and monitor workflows.
About this chart
Apache Airflow
Apache Airflow is a platform to programmatically author, schedule and monitor workflows.
TL;DR
$ helm install my-release evermos/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. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add evermos https://evermos.github.io/helm-charts
$ helm install my-release evermos/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
The following tables lists the configurable parameters of the Airflow chart and their default values.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
Common parameters
| Parameter | Description | Default |
|---|---|---|
affinity | Affinity for pod assignment (evaluated as a template) | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
containerSecurityContext.enabled | Enable container security context | true |
containerSecurityContext.runAsUser | User ID for the container | 1001 |
extraDeploy | A list of extra kubernetes resources to be deployed | [] |
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | nil |
extraEnvVars | Extra environment variables to add to web, worker and scheduler pods | nil |
extraEnvVarsCM | ConfigMap containing extra env vars to add to web, worker and scheduler pods | nil |
extraEnvVarsSecret | Secret containing extra env vars to add to web, worker and scheduler pods | nil |
fullnameOverride | String to fully override airflow.fullname template with a string | nil |
initContainers | List of init containers to be added to the web, worker and scheduler pods | nil |
nameOverride | String to partially override airflow.fullname template with a string (will prepend the release name) | nil |
networkPolicies.enabled | Switch to enable network policies | false |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
nodeSelector | Node labels for pod assignment | {} (evaluated as a template) |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
podSecurityContext.enabled | Enable pod security context | true |
podSecurityContext.fsGroup | fsGroup ID for the pod | 1001 |
rbac.create | If true, create & use RBAC resources | false |
serviceAccount.annotations | Annotations for service account | {} |
serviceAccount.create | If true, create a service account | false |
serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `` |
sidecars | List of sidecar containers to be adde to web, worker and scheduler pods | nil |
tolerations | Tolerations for pod assignment | [] (evaluated as a template) |
Airflow common parameters
| Parameter | Description | Default |
|---|---|---|
auth.existingSecret | Name of an existing secret containing password and fernet key ('airflow-password and 'airflow-fernetKey' keys) | nil |
auth.fernetKey | Fernet key to secure connections | nil |
auth.forcePassword | Force users to specify a password | false |
auth.password | Password to access web UI | nil |
auth.username | Username to access web UI | user |
configurationConfigMap | Name of an existing config map containing the Airflow config file | nil |
dagsConfigMap | Name of an existing config map containing all the DAGs files you want to load in Airflow. | nil |
executor | Airflow executor, it should be one of SequentialExecutor, Local Executor, CeleryExecutor, KubernetesExecutor | "CeleryExecutor" |
loadExamples | Switch to load some Airflow examples | false |
Airflow web parameters
| Parameter | Description | Default |
|---|---|---|
web.args | Override default container args (useful when using custom images) | nil |
web.baseUrl | URL used to access to airflow web ui | nil |
web.command | Override default container command (useful when using custom images) | nil |
web.configMap | Config map name for ~/airflow/webserver_config.py | nil |
web.containerPort | Container port to be used for exposing http server. | 8080 |
web.customLivenessProbe | Custom liveness probe for the web component | {} |
web.customReadinessProbe | Custom rediness probe for the web component | {} |
web.extraEnvVars | Array containing extra env vars | nil |
web.extraEnvVarsCM | ConfigMap containing extra env vars | nil |
web.extraEnvVarsSecret | Secret containing extra env vars (in case of sensitive data) | nil |
web.hostAliases | Add deployment host aliases | [] |
web.extraVolumeMounts | Array of extra volume mounts to be added (evaluated as template). Normally used with extraVolumes. | nil |
web.extraVolumes | Array of extra volumes to be added (evaluated as template). | nil |
web.image.debug | Specify if debug values should be set | false |
web.image.pullPolicy | Airflow web image pull policy | IfNotPresent |
web.image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
web.image.registry | Airflow web image registry | docker.io |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartairflow is pinned at v8.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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