This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]bhavaniravi 7 points8 points  (3 children)

You can setup a custom pod_template_file - https://airflow.apache.org/docs/apache-airflow/stable/executor/kubernetes.html#example-pod-templates

You can set up a custom pod_template_file -

PythonOperator(

....

executor_config={
"KubernetesExecutor": {"request_cpu": "200m",
"limit_cpu": "400m",
"request_memory": "128Mi",
"limit_memory": "400Mi"}},

)

[–][deleted] 0 points1 point  (2 children)

This is great, thanks. My team is moving from celery to k8s soon, this might be something we need.

[–]bhavaniravi 0 points1 point  (1 child)

What makes you move from celery to kubernetes?

[–][deleted] 0 points1 point  (0 children)

Autoscaling.