<p>i installed airflow using bitnami repo:  To install extra python packages i mounted an extra volume<a href="https://i.stack.imgur.com/G1Btn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G1Btn.png" alt="enter image description here" /></a></p>
<p>I prepared my requirements.txt file and then i created a ConfigMap using <em>kubectl create -n airflow configmap requirements --from-file=requirements.txt</em> after this i upgraded airflow using helm upgrade....</p>
<p>But in my dags file, i'm still getting the error &quot;ModuleNotFoundError: No module named 'yfinance'&quot;</p>

Elpis
<p>Posting this as Community wiki for better visibility. Feel free to expand it.</p>
<hr />
<p>As @Elpis wrote in the comments section, he followed <a href="https://towardsdatascience.com/setting-up-data-pipelines-using-apache-airflow-on-kubernetes-4506baea3ce0" rel="nofollow noreferrer">this guide</a> to install Apache Airflow on Kubernetes.</p>
<p>And he solved the problem by adding <code>extraVolumeMounts</code> and <code>extraVolumes</code> to the <strong>worker pod</strong>, and also to the <strong>web pod</strong> and to the <strong>scheduler pod</strong>.</p>
<pre><code>extraVolumeMounts:
  - name: requirements
    mountPath: /bitnami/python/

## Add extra volumes
extraVolumes:
  - name: requirements
    configMap:
# Provide the name of the ConfigMap containing the files you want
# to add to the container
      name: requirements
</code></pre>
<p>After that, all extra Python packages were installed.</p>
