<p>I'm trying to install Airflow on Azure Kubernetes Service (AKS) using Helm. I've found some guides to do so, and with some difficulty I've managed to get it working fine. I was now trying to run some DAGs I made and in one of those DAGs I use the bash operator to run a specific command, and that command needs a Linux package that does not come with the default image Helm uses for Airflow...
<a href="https://github.com/airflow-helm/charts/tree/main/charts/airflow" rel="nofollow noreferrer">https://github.com/airflow-helm/charts/tree/main/charts/airflow</a></p>
<p>Is there a way to include extra Linux packages for the Helm Airflow chart installation? I've looked all over for it but couldn't find anything</p>
<p>Hope someone can help me on this.</p>

Tomas Cardoso
<p>Helm itself is a templating language. Most of the helm charts give you a flexibility to change your base image of the applications. As long as you are using the related image, the helm chart will create a correct deployment for you.</p>
<p>In your case, if you want to extend the functionalities or install more packages in the base image, you will need to create your own image and push to an image repository.</p>
<p>For example, you can install your package like this with <code>Dockerfile</code> defined locally.</p>
<pre><code>FROM apache/airflow:1.10.12-python3.6

RUN apt update &amp;&amp; \
    apt install vim -y &amp;&amp; \
    rm -rf /var/lib/apt/lists/*
</code></pre>
<p>Then, run the following command to build and upload your custom image.</p>
<pre class="lang-sh prettyprint-override"><code>docker build -t my-account/my-airflow:latest .
docker push my-account/my-airflow:latest
</code></pre>
<p>In your values file, you can specify your image name and tag then.</p>
<pre class="lang-yaml prettyprint-override"><code>airflow:
  image:
    repository: my-account
    tag: my-airflow
</code></pre>
<p>Once you apply this values file, helm will help you to change the default image to your customized one.</p>
<p>The tutorial in the <a href="https://github.com/airflow-helm/charts/tree/main/charts/airflow#option-3---container-image" rel="nofollow noreferrer">doc</a> also mentions the custom image but it is for the DAG building. But with the same technique, you can customize your own base image.</p>
