Search code examples
kubernetesairflowkubernetes-helmamazon-eks

Airflow worker does not have any annotation on kubernetes executor


I am running airflow 1.10.10 on an EKS cluster and I am using kubernetes executor. When the scheduler creates a new worker, the pod created does not have any annotation.

So my question is : how to set specific annotations for pod workers ? is there any option to set in airflow.cfg file ?


Solution

  • after some research, it seems that we can achieve this by adding the following to airflow.cfg file:

    [kubernetes_annotations]
    # The Key-value annotations pairs to be given to worker pods.
    # Should be supplied in the format: key = value