[
https://issues.apache.org/jira/browse/AIRFLOW-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16783691#comment-16783691
]
David Lum commented on AIRFLOW-3258:
------------------------------------
Breaking apart this ticket into two tickets, as there are two distinct
features. The second feature can be found at
[AIRFLOW-4008|https://issues.apache.org/jira/browse/AIRFLOW-4008].
> Add ability to set Environment Variables for pods brought up by Kubernetes
> Executor
> -----------------------------------------------------------------------------------
>
> Key: AIRFLOW-3258
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3258
> Project: Apache Airflow
> Issue Type: Improvement
> Components: kubernetes
> Affects Versions: 1.10.0
> Reporter: David Lum
> Assignee: David Lum
> Priority: Minor
> Labels: kubernetes
> Fix For: 1.10.0
>
>
> Currently the only way to add arbitrary environment variables to pods brought
> up by the KubernetesExecutor is to add them using Kubernetes secrets, and
> then specifying those secrets in the in the kubernetes_secrets section of the
> the airflow.cfg. However, not all environment variables are secrets and need
> to be encoded. The suggestion would be to add another section to the
> airflow.cfg, kubernetes_environment_variables. On top of this, a short hand
> could be to add all the env vars in the current environment to the pods being
> brought up. This could be set with a boolean flag in the kubernetes section
> of the airflow.cfg which would to default to false, and have a name such as
> insert_current_environment. Any environment variables set in the
> kubernetes_environment_variables section, as well as those that are hard
> coded such as AIRFLOW_\_CORE\__EXECUTOR would overwrite those present in the
> current environment when applied to the worker pod.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)