You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/07/29 07:32:17 UTC

[GitHub] [airflow] Kristof-Mattei commented on issue #10027: `pod_mutation_hook` doesn't work with the K8s executor

Kristof-Mattei commented on issue #10027:
URL: https://github.com/apache/airflow/issues/10027#issuecomment-665196436


   @kaxil 
   I managed to get the hook working by putting it in `local_settings.py` in the scheduler.
   
   
   `AIRFLOW__KUBERNETES__AIRFLOW_LOCAL_SETTINGS_CONFIGMAP` defines  the configmap that contains the `local_settings.py`, but it is only being used once the pod is launched, as part of the mounted volume, so that's too late, and also in a different context (i.e. the new pod). At that moment the resources have already been set (which is what I'm trying to modify as `AIRFLOW_KUBERNETES_WORKER_RESOURCES` hasn't landed yet.  
   


----------------------------------------------------------------
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:
users@infra.apache.org