

In this example, the file path would be /tmp/copied_pod_template.yaml. Its value should be the directory path for the pod template in your Docker image. In the Software UI, add the AIRFLOW_KUBERNETES_POD_TEMPLATE_FILE environment variable to your Deployment. Note: Depending on your configuration, you may also need to change your USER line to root in order to have the appropriate copy permissions. You'll specify this file in an Environment Variable in Step 2. This command uses new_pod_template.yaml to create copied_pod_template.yaml at build time as part of your Docker image. Run the following command to find the namespace (release name) of your Airflow Deployment: To configure a Deployment's Kubernetes Executor, you need to modify the Deployment's pod template and reapply a custom template via environment variables. Configure the Kubernetes Executor Using Pod Templates īy default, Airflow Deployments on Astronomer use a pod template to construct each pod. To learn more about different Executor types, read Airflow Executors Explained. For more information on configuring an Executor, read Configure a Deployment. Note that you must have an Airflow Deployment on Astronomer running with the Kubernetes Executor to follow this setup. For more information on configuring pod template values, reference the Kubernetes documentation.
Onetask imaging software how to#
Read this guide to learn how to configure a pod template and apply it to both Airflow Deployments and individual Airflow tasks. To configure these resources for each pod, you configure a pod template.

It also means you can configure the following for each individual Airflow task: This enables the Executor to scale depending on how many Airflow tasks you're running at a given time. For each task that needs to run, the Executor talks to the Kubernetes API to dynamically launch Pods which terminate when that task is completed. Run the Kubernetes Executor on Astronomer Software Overview Īpache Airflow's Kubernetes Executor relies on a fixed single Pod that dynamically delegates work and resources.
