Airflow 3This feature is only available for Airflow 3.x Deployments.
values.yaml file with OpenLineage configurations pre-filled. To set up OpenLineage, you need to configure an access credential for OpenLineage. This can be an Astro Deployment API token used as your OpenLineage API key. There are three methods you can use to add your API key to your Helm values:
- Method 1 - Configure the API key as plain text. This stores your API key in your
values.yamlfile as plaintext, which is the simplest but least secure option. It’s appropriate for development or testing environments. - Method 2 - Use a pre-created Kubernetes secret. This procedure stores your API key separately from your
values.yamlfile, which provides more security than storing as plaintext. This option provides security with standard Kubernetes features. - Method 3 - Inject your API key with a secrets manager. This approach uses an init container to inject the Agent token into the Remote Execution Agent component Pods. This example uses the HashiCorp Vault Agent, but you can use your own secrets manager. This option provides enhanced security with the potential for secret rotation.
Prerequisites
- A Kubernetes cluster
- Helm
- The
values.yamlfile downloaded from the Remote Execution Agent registration modal in the Astro UI - A Deployment API Token that uses a Custom Deployment role with Observe Ingest permissions
Setup
Step 1: Retrieve your OpenLineage variables
The downloaded Helm values file includes most OpenLineage variables pre-filled, so you only need to configure the OpenLineage API key.
Step 2: Configure the OpenLineage API key
- Configure key as plaintext
- Use pre-created Kubernetes secret
- Use secrets manager
This method stores an Astro Deployment API token as your OpenLineage API key in plain text in your
values.yaml file, so that the Remote Execution Agent Helm chart can use it to create a Kubernetes secret named openlineage-api-key-secret. This API key is base64-encoded in the Kubernetes secret.All Remote Execution Agent components — the worker, Dag processor, and triggerer — use this API key to authenticate with the OpenLineage endpoint.1
Update your values file
Add the following OpenLineage configuration to your
values.yaml file:values.yaml
Install the Helm chart
Apply the chart using thevalues.yaml file with the following command:Step 3: Set OpenLineage environment variables on the orchestration plane
1
Open the Deployment
In the Astro UI, open your Deployment.