bnutt commented on issue #4627: [AIRFLOW-3258] K8S executor environment 
variables section.
URL: https://github.com/apache/airflow/pull/4627#issuecomment-475725141
 
 
   Has anyone had an issue with using this functionality by setting environment 
variables for the scheduler?
   
   I am trying to set these variables via environment variable, not directly 
through airflow.cfg, this is because I am using the helm chart and its method 
of setting environment variables is through 
[config](https://github.com/helm/charts/blob/master/stable/airflow/values.yaml#L118)
   
   So I have something like:
   ```
   airflow:
     config: {
     AIRFLOW__KUBERNETES_ENVIRONMENT_VARIABLES: {
         AIRFLOW__CORE__LOGGING_LEVEL: "DEBUG"
       }
     }
   ```
   Also have tried
   ```
   airflow:
     config: {
     AIRFLOW__KUBERNETES__ENVIRONMENT__VARIABLES: {
         AIRFLOW__CORE__LOGGING_LEVEL: "DEBUG" 
       }
     }
   ```
   
   However, when a task comes up for that pod, I do not see the environment 
variables being set for the worker pod. 
   
   Is it not possible to set these variables via environment variable and only 
through  an airflow.cfg file?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to