{"id":20577835,"url":"https://github.com/toolforge/superset-deploy","last_synced_at":"2026-03-19T16:29:43.449Z","repository":{"id":163996345,"uuid":"639471394","full_name":"toolforge/superset-deploy","owner":"toolforge","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-22T16:15:18.000Z","size":57,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-06T11:38:07.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toolforge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-11T14:14:25.000Z","updated_at":"2024-11-17T06:34:12.000Z","dependencies_parsed_at":"2023-12-22T17:24:52.721Z","dependency_job_id":"4855e166-2e5a-439c-91ed-47e013713686","html_url":"https://github.com/toolforge/superset-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toolforge/superset-deploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolforge%2Fsuperset-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolforge%2Fsuperset-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolforge%2Fsuperset-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolforge%2Fsuperset-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolforge","download_url":"https://codeload.github.com/toolforge/superset-deploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolforge%2Fsuperset-deploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30203339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T06:08:48.562Z","updated_at":"2026-03-06T23:32:07.270Z","avatar_url":"https://github.com/toolforge.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Deploy\n## from the superset bastion node:\ncd tofu\ntofu init\ntofu apply -var datacenter=\"\u003ccodfw1dev|eqiad1\u003e\"\n\n# When k8s is setup, start here\nTo install run `deploy.sh \u003ccodfw1dev|eqiad1\u003e`\n\n## Disaster recovery deploy\nafter deploy.sh Create OAuth role:\nall query access on all_query_access\n\n# To migrate the db:\n```\nexport KUBECONFIG=\u003cpath/to/old/kubeconfig\u003e\nkubectl exec -it pod/superset-postgresql-0 -- bash\npg_dump --username=superset superset -F t \u003e /tmp/db.tar\n\nkubectl cp default/superset-postgresql-0:tmp/db.tar ./db.tar\nexport KUBECONFIG=\u003cpath/to/new/kubeconfig\u003e\nkubectl cp ./db.tar default/superset-postgresql-0:tmp/db.tar\nkubectl exec -it pod/superset-postgresql-0 -- bash\npg_restore -c -U superset -F t -d superset /tmp/db.tar\n```\n\n# DB backups\nShould be found in superset-bastion.superset.eqiad1.wikimedia.cloud:/home/rook/db-backup-superset/\n\n# Upgrade notes\nThe OAuth role won't update on an upgrade. However the Alpha role and sql_lab roles may change. If a permissions problem manifests following an upgrade, looking for differences between the current and former Alpha and sql_lab roles may show a permission that can be added to OAuth to solve the issue.\n\n\n# Minikube\nYou can run superset in minikube. Currently requires some fussing with files. Currently tested on minikube v1.26.1 k8s 1.23.15\n```\ncp values.yaml-template values.yaml\n```\nin values.yaml edit client_id to be 13067ed55ce2a4633af67dfffead4cb3 and client_secret to be 7079a6a2894554f2575fc173814713fcee498716\n```\n                'client_id':'13067ed55ce2a4633af67dfffead4cb3',\n                'client_secret':'7079a6a2894554f2575fc173814713fcee498716',\n```\nRemove the SQLALCHEMY_DATABASE_URI at the end of the file\n```\nminikube addons enable ingress\nhelm repo add superset https://apache.github.io/superset\nhelm install superset superset/superset -f values.yaml --version 0.10.0\nkubectl apply -f minikube-ingress.yaml\n```\nIn your /etc/hosts file set the output of `minikube ip` to superset.local\nhttps://superset.local/\nShould now give you access.\nTODO: make this an automatic install. Ansible templating would make this nicer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolforge%2Fsuperset-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoolforge%2Fsuperset-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolforge%2Fsuperset-deploy/lists"}