Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toolforge/superset-deploy
https://github.com/toolforge/superset-deploy
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/toolforge/superset-deploy
- Owner: toolforge
- License: mit
- Created: 2023-05-11T14:14:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-22T16:15:18.000Z (5 months ago)
- Last Synced: 2024-11-16T06:08:44.455Z (2 months ago)
- Language: Jinja
- Size: 55.7 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Deploy
## from the superset bastion node:
cd tofu
tofu init
tofu apply -var datacenter=""# When k8s is setup, start here
To install run `deploy.sh `## Disaster recovery deploy
after deploy.sh Create OAuth role:
all query access on all_query_access# To migrate the db:
```
export KUBECONFIG=
kubectl exec -it pod/superset-postgresql-0 -- bash
pg_dump --username=superset superset -F t > /tmp/db.tarkubectl cp default/superset-postgresql-0:tmp/db.tar ./db.tar
export KUBECONFIG=
kubectl cp ./db.tar default/superset-postgresql-0:tmp/db.tar
kubectl exec -it pod/superset-postgresql-0 -- bash
pg_restore -c -U superset -F t -d superset /tmp/db.tar
```# DB backups
Should be found in superset-bastion.superset.eqiad1.wikimedia.cloud:/home/rook/db-backup-superset/# Upgrade notes
The 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.# Minikube
You can run superset in minikube. Currently requires some fussing with files. Currently tested on minikube v1.26.1 k8s 1.23.15
```
cp values.yaml-template values.yaml
```
in values.yaml edit client_id to be 13067ed55ce2a4633af67dfffead4cb3 and client_secret to be 7079a6a2894554f2575fc173814713fcee498716
```
'client_id':'13067ed55ce2a4633af67dfffead4cb3',
'client_secret':'7079a6a2894554f2575fc173814713fcee498716',
```
Remove the SQLALCHEMY_DATABASE_URI at the end of the file
```
minikube addons enable ingress
helm repo add superset https://apache.github.io/superset
helm install superset superset/superset -f values.yaml --version 0.10.0
kubectl apply -f minikube-ingress.yaml
```
In your /etc/hosts file set the output of `minikube ip` to superset.local
https://superset.local/
Should now give you access.
TODO: make this an automatic install. Ansible templating would make this nicer