How to automatically register a database in superset when deploying via Helm? #36443
-
|
Greetings, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @victor98dl! I'm Dosu and I’m helping the superset team. You can automate database registration in Superset Helm deployments by using the
Tips:
This approach ensures your database is registered every time you deploy or redeploy Superset, with no manual steps required [source]. For more details and examples, see the Superset Helm chart documentation. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
That worked, thank you! |
Beta Was this translation helpful? Give feedback.
Hi @victor98dl! I'm Dosu and I’m helping the superset team.
You can automate database registration in Superset Helm deployments by using the
extraConfigssection in yourvalues.yaml. This lets you provide animport_datasources.yamlfile that defines your database(s), which the init job will import automatically on startup—no GUI needed. Here’s how to set it up:Disable the internal PostgreSQL by setting
postgresql.enabled: falseif you’re using an external database.Configure your external database connection under
supersetNode.connections(setdb_host,db_port,db_user,db_name, and reference the password securely via a Kubernetes Secret).Add an
import_datasources.yamlunderextr…