You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "George Miller (JIRA)" <ji...@apache.org> on 2019/06/05 18:00:01 UTC

[jira] [Created] (AIRFLOW-4739) Kubernetes Executor: Allow per task labels on task pods

George Miller created AIRFLOW-4739:
--------------------------------------

             Summary: Kubernetes Executor:  Allow per task labels on task pods
                 Key: AIRFLOW-4739
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4739
             Project: Apache Airflow
          Issue Type: New Feature
          Components: executors
    Affects Versions: 1.10.4
            Reporter: George Miller
            Assignee: George Miller


I want to be able to add arbitrary labels to an airflow worker pod.  For example, I want to specify this in the task definition:

```
run_this = PythonOperator(
 task_id='print_the_context',
 provide_context=True,
 python_callable=my_sleeping_function,
 executor_config=\{"KubernetesExecutor": {"labels": {"test": "label"}}},
 dag=dag,
)
```

And have my worker pod have the label `test:label`.  My main use case for this is for auditing.  We audit our kubernetes cluster by tags, attributing cost based on how much resources the pod uses.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)