I recently upgraded to Airflow 1.10 which introduced the KubernetesPodOperator
however whenever I use it I see the following error in the webserver: No module named 'kubernetes'
. Why does this happen and how can I fix it?
This happens because the kubernetes library isn't installed with vanilla airflow. You can fix this by running pip install "apache-airflow[kubernetes]"
.
For airflow 1.10.4,
pip install 'apache-airflow[cncf.kubernetes]'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With