Setting resources for containers¶
It is possible to set resources for the Containers managed by the chart. You can define different resources for various Airflow k8s Containers. By default the resources are not set.
Note
The k8s scheduler can use resources to decide which node to place the Pod on. Since a Pod resource request/limit is the sum of the resource requests/limits for each Container in the Pod, it is advised to specify resources for each Container in the Pod.
Possible Containers where resources can be configured include:
Main Airflow Containers and their sidecars. You can add the resources for these Containers through the following parameters:
workers.resourcesworkers.logGroomerSidecar.resourcesworkers.kerberosSidecar.resourcesworkers.kerberosInitContainer.resourcesscheduler.resourcesscheduler.logGroomerSidecar.resourcesdags.gitSync.resourceswebserver.resourcesflower.resourcesdagProcessor.resourcesdagProcessor.logGroomerSidecar.resourcestriggerer.resourcestriggerer.logGroomerSidecar.resources
Containers used for Airflow k8s jobs or cron jobs. You can add the resources for these Containers through the following parameters:
cleanup.resourcescreateUserJob.resourcesmigrateDatabaseJob.resources
Other containers that can be deployed by the chart. You can add the resources for these Containers through the following parameters:
statsd.resourcespgbouncer.resourcespgbouncer.metricsExporterSidecar.resourcesredis.resources
For example, specifying resources for worker Kerberos sidecar:
workers:
kerberosSidecar:
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi