I\'m trying to set the request_cpu
parameter in the Kubernetes executor for Airflow but haven\'t been able to find where I can do that. In the default airflow confi
You can set this executor_config
at task level for KubernetesExecutor as follows.
exmaple_task = PythonOperator(
task_id="exmaple_task",
python_callable=print_stuff,
executor_config={
"KubernetesExecutor": {"request_cpu": "1",
"request_memory": "128Mi",
"limit_memory": "128Mi"}}
)
You can define the following in executor_config
:
Doc: https://airflow.apache.org/docs/1.10.9/_api/airflow/contrib/executors/kubernetes_executor/index.html#airflow.contrib.executors.kubernetes_executor.KubernetesExecutorConfig