airflow
by [riftbit]
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 bitnami/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 bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override airflow.fullname template with a string (will prepend the release name) | "" |
fullnameOverride | String to fully override airflow.fullname template with a string | "" |
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 | [] |
extraEnvVars | Extra environment variables to add to web, worker and scheduler pods | [] |
extraEnvVarsCM | ConfigMap containing extra env vars to add to web, worker and scheduler pods | "" |
extraEnvVarsSecret | Secret containing extra env vars to add to web, worker and scheduler pods | "" |
initContainers | List of init containers to be added to the web, worker and scheduler pods | [] |
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 | {} |
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. Evaluated as a template. Only used if create is true. | {} |
serviceAccount.create | Specifies whether a ServiceAccount should be created | false |
serviceAccount.name | 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 added to web, worker and scheduler pods | [] |
tolerations | Tolerations for pod assignment | [] |
Airflow common parameters
| Name | Description | Value |
|---|---|---|
auth.existingSecret | Name of an existing secret containing password, fernet key and secret key ('airflow-password', 'airflow-fernetKey' and 'airflow-secretKey' keys) | "" |
auth.fernetKey | Fernet key to secure connections | "" |
auth.forcePassword | Force users to specify a password | false |
auth.password | Password to access web UI | "" |
auth.username | Username to access web UI | user |
auth.secretKey | Secret key to run your flask app | "" |
configurationConfigMap | Name of an existing config map containing the Airflow config file | "" |
executor | Airflow executor, it should be one of 'SequentialExecutor', 'LocalExecutor', 'CeleryExecutor', 'KubernetesExecutor', 'CeleryKubernetesExecutor' | CeleryExecutor |
dagsConfigMap | Name of an existing config map containing all the DAGs files you want to load in Airflow | "" |
loadExamples | Switch to load some Airflow examples | false |
Airflow web parameters
| Name | Description | Value |
|---|---|---|
web.image.registry | Airflow image registry | docker.io |
web.image.repository | Airflow image repository | bitnami/airflow |
web.image.tag | Airflow image tag (immutable tags are recommended) | 2.1.4-debian-10-r4 |
web.image.pullPolicy | Airflow image pull policy | IfNotPresent |
web.image.pullSecrets | Airflow image pull secrets | [] |
web.image.debug | Enable image debug mode | false |
web.replicaCount | Number of web replicas | 1 |
web.hostAliases | Deployment pod host aliases | [] |
web.baseUrl | URL used to access to airflow web ui | "" |
web.configMap | Name of an existing config map containing the Airflow webserver config file | "" |
web.command | Override default container command (useful when using custom images) | [] |
web.args | Override default container args (useful when using custom images) | [] |
web.podLabels | Add extra labels to the web's pods | {} |
web.podAnnotations | Add extra annotations to the web's pods | {} |
web.containerPort | Container port to be used for exposing http server | 8080 |
web.extraVolumeMounts | Add extra volume mounts | [] |
web.extraVolumes | Add extra volumes | [] |
web.extraEnvVars | Array containing extra environment variables | [] |
web.extraEnvVarsCM | ConfigMap containing extra environment variables | "" |
web.extraEnvVarsSecret | Secret containing extra environment variables (in case of sensitive data) | "" |
web.resources.limits | The resources limits for the Web container | {} |
web.resources.requests | The requested resources for the Web container | {} |
web.livenessProbe.enabled | Enable livenessProbe | true |
web.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 180 |
web.livenessProbe.periodSeconds | Period seconds for livenessProbe | 20 |
web.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
web.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
web.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
web.readinessProbe.enabled | Enable readinessProbe | true |
| `web.readinessProbe.initialDe |
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 v11.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