Run the current Airflow image
You can run your Deployment’s current Airflow image with theKubernetesPodOperator by using the environment variable, ASTRONOMER_AIRFLOW_IMAGE. This environment variable allows you to run KPO tasks using the same Runtime image that your Deployment uses, in a way that won’t be affected by underlying cluster infrastructure changes that might change the base image repository URL. The ASTRONOMER_AIRFLOW_IMAGE environment variable allows you to ensure that your Deployment retrieves the correct image URL.
Setup
1
Add current Airflow image configuration
Add the
ASTRONOMER_AIRFLOW_IMAGE environment variable to your KPO configuration. For example: