villebro commented on issue #31026:
URL: https://github.com/apache/superset/issues/31026#issuecomment-2541927567

   This is not directly related to the Helm chart, but rather how the Docker 
image is built. Sadly, pulling in extra db drivers on the fly is not totally 
straight forward for the following reasons:
   
   - user account: Only the `root` account is allowed to install new packages 
on the running pod/container. If you're ok with this, remember to keep the 
default `runAsUser: 0` in your `values.yaml`
   - Internet access: Many environments may have blocked external access from 
the Superset pods to the external internet. However, if you happen to have an 
internal PyPI registry, you can use that in your bootstrap script: `pip install 
psycopg2 --index-url https://pypi.mycorp.com/simple`
   
   If neither of these is possible in your environment, you will need to build 
a custom image, where you preinstall all necessary drivers. This both 
eliminates the need to run as `root`, and doesn't require having access to a 
running PyPI registry. This is also the recommended approach, as it keeps 
startup times to a minimum (no need to install the drivers every time the pod 
starts up), doesn't require access to a PyPI registry, and doesn't require 
running as `root`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to