<p>I have installed Apache Superset from its Helm Chart in a Google Cloud Kubernetes cluster. I need to <code>pip install</code> a package that is not installed when installing the Helm Chart. If I connect to the Kubernetes bash shell like this:</p>

<p><code>kubectl exec -it superset-4934njn23-nsnjd /bin/bash</code></p>

<p>Inside there's no python available, no pip and apt-get doesn't find most of the packages.</p>

<p>I understand that during the container installation process the packages are listed in the Dockerfile, I suppose that I need to fork the docker container, modify the Dockerfile, register the container to a container registry and make a new Helm Chart that will run this container.</p>

<p>But all this seems too complicated for a simple <code>pip install</code>, is there a simpler way to do this?</p>

<p>Links:</p>

<p>Docker- <a href="https://hub.docker.com/r/amancevice/superset/" rel="nofollow noreferrer">https://hub.docker.com/r/amancevice/superset/</a></p>

<p>Helm Chart - <a href="https://github.com/helm/charts/tree/master/stable/superset" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/superset</a></p>

Ben Gosub
<p>As @Murli mentioned, you should use <code>pip3</code>. However, one thing you should remember is, <code>helm</code> is for managing k8s, i.e. what goes into the cluster should be traceable. So I recommend you the following:</p>

<pre><code>$ helm get stable/superset
</code></pre>

<p>modify the values.yaml. In my case, I added jenkins-job-builder to pip3:</p>

<pre><code>initFile: |-
  pip3 install jenkins-job-builder
  /usr/local/bin/superset-init --username admin --firstname admin --lastname user --email admin@fab.org --password admin
  superset runserver
</code></pre>

<p>and just pass the <code>values.yaml</code> to <code>helm install</code>.</p>

<pre><code>$ helm install --values=values.yaml stable/superset
</code></pre>

<p>Thats it.</p>

<pre><code> $ kubectl exec -it doltish-gopher-superset-696448b777-8b9c6 which jenkins-jobs
 /usr/local/bin/jenkins-jobs
 $
</code></pre>
