kaxil commented on issue #15670:
URL: https://github.com/apache/airflow/issues/15670#issuecomment-889548384


   Yup you are right @Jaxing , use the following that should work both in 
1.10.15 and 2.*. It will help in migrations, once you upgrade to Airflow 2.0+, 
you can then change to using pod_overrides
   
   ```python
   p1 = PythonOperator(
       task_id='example_test_task',
       dag=dag,
       python_callable=lambda: 1,
       executor_config={
           "KubernetesExecutor": {
               'resources': {
                   'limits': {'memory': '200Mi', 'cpu': '100m'},
                   'requests': {'memory': '100Mi', 'cpu': '100m'}
               }
           }
       }
   )
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to