Overview
Custom images allow you to add Airflow providers, Python libraries, and system packages that are missing from the standard Cloudera Workflow Orchestrator image, while keeping the platform-managed control plane unchanged. Learn how to build, validate, and deploy a custom Docker image for Cloudera Workflow Orchestrator.
When you enable the custom image feature for your Cloudera Workflow Orchestrator instance, only the following components use your custom image:
- DAG Processor: Parses and serializes DAG files from GIT.
- Triggerer: Runs deferrable (asynchronous) operators.
- Worker: Executes task workloads launched by the Kubernetes executor.
The API server, scheduler, and other platform components continue to run the standard Cloudera-provided image. This separation keeps authentication and scheduling under Cloudera management while giving you flexibility where your DAGs actually run.
Base image naming convention
Cloudera Workflow Orchestrator base images follow a standardized naming convention as follows:
[***REGISTRY***]/[***REPO-NAME***]/cloudera-airflow-[***AIRFLOW-VERSION***]-py3.12:[***Cloudera Workflow Orchestrator-VERSION***]
Example,
[***REGISTRY***]/cloudera/cloudera-airflow-3.4.0-py3.12:2.0.0
Supported versions
| Component | Version |
|---|---|
| Cloudera Workflow Orchestrator | 2.0.0 |
| Apache Airflow | 3.4.0 |
| Python | 3.12 |
Pre-installed providers and constraints
Pre-installed providers:
The base Cloudera Workflow Orchestrator image already includes the standard packages for Airflow 3.4.0 on Python 3.12. Only add packages to your requirements file if they are not part of the pre-installed providers. For information about pre-installed providers, see Cloudera Workflow Orchestrator operators and hooks.
Constraints file:
The base image contains a constraints file at /usr/local/airflow/constraints.txt. This file pins compatible versions for your Airflow and Python combination (example, Airflow 3.4.0 and Python 3.12).
Always reference this file when installing new packages:
uv pip install --python /opt/airflow_venv/bin/python \
--constraint /usr/local/airflow/constraints.txt [***PACKAGE-NAME***]
Connections and the API server
The API server runs the standard Cloudera Workflow Orchestrator base image and only recognizes connection types provided by packages installed on that standard image. Custom providers exist exclusively within the DAG processor, triggerer, and worker pods.
Use the following workarounds when creating connections in the UI:
| Scenario | Workaround |
|---|---|
| An operator requires a connection type defined in a custom package. | Create the connection using the Airflow REST API. |
| An operator supports generic connections. | Select the Generic connection type in the UI. |
| You define connections directly in code. | Define the connection using environment variables in your DAG configuration. |
Process commands
| Component | Command |
|---|---|
| DAG processor |
|
| Triggerer |
|
| Worker |
|
The worker command receives runtime parameters from the scheduler at pod launch. The empty JSON placeholder ({}) represents the default chart value.
Limitations
When using a custom image, the following Cloudera Workflow Orchestrator platform
behaviors do not apply to workloads running in your image or apply differently if you modified
or deleted the airflow_local_settings.py policies.
- Disabled operators policy: Cloudera Workflow Orchestrator does not enforce operator restrictions on custom images. You must enforce restrictions on operators in your DAG standards.
- Default DAG Run timeout: Cloudera Workflow Orchestrator
does not enforce default timeouts automatically. Set
dagrun_timeoutexplicitly within your DAGs. - Cloudera
airflow_local_settings.pypolicies: Base policies apply to platform components, but they may not cover code paths in your custom packages. - Resource Limits: Pods remain subject to cluster resource limits (CPU or memory requests and limits for DAG processor, triggerer, and worker pods).
