Configure CPU, memory, and replica settings for Airflow Deployment components including scheduler, webserver, workers, triggerer, Dag processor, and API server.
Resource values are plain integers: CPU in millicpu and memory in MiB.
The scheduler orchestrates Dag runs and task scheduling.
safeToEvict: false to prevent cluster autoscaler eviction.In Airflow 2, the Dag processor defaults to 0 replicas and must be explicitly enabled. In Airflow 3, the APC API automatically sets dagProcessor.enabled: true and enforces a minimum of 1 replica regardless of configuration.
Kubernetes Event-driven Autoscaling (KEDA) scales Celery workers based on task queue depth. Enable KEDA for a Deployment using the updateDeploymentKedaConfig mutation: