You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 02:57:54 UTC
Re: [D] Custom image and helm deployment [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Custom image and helm deployment
<!-- Greeting -->
Hi @ytihianine! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
The Helm chart for Superset always mounts a Kubernetes Secret at `/app/pythonpath`, which overrides any `superset_config.py` you include in your custom image. This is done by design using the `superset-config` template in the chart, and there is no built-in flag to disable this behavior or use only the file from your image ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/templates/_helpers.tpl)).
To use your own config, create a Kubernetes Secret containing your custom `superset_config.py`, then set the `configFromSecret` value in your Helm values file to the name of that Secret. The chart will mount your Secret instead of the default generated config ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/README.md)). For example:
```bash
kubectl create secret generic my-superset-config \
--from-file=superset_config.py=./superset_config.py
```
Then in your `values.yaml`:
```yaml
configFromSecret: my-superset-config
```
If you only need to append or override a few settings, you can use the `configOverrides` or `configOverridesFiles` values, but these are appended to the generated config and do not replace it entirely.
There is currently no supported way to prevent the Helm chart from mounting a config Secret at `/app/pythonpath` ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/values.yaml)).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=0d77c69e-0fa7-4813-bfaf-21cf07851d94) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34861#discussioncomment-14225371
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org