Closed hongbo-miao closed 2 years ago
Based on the error, I feel maybe Postgres is not ready when Superset tries to initialize (migrate) the database.
So first I deployed my own Postgres.
Then I created a file called my-values.yaml:
postgresql:
enabled: false
supersetNode:
connections:
db_host: "my-postgres-service.my-namespace"
db_port: "5432"
db_user: admin
db_pass: passw0rd
db_name: superset_db
values.yaml is at https://github.com/apache/superset/blob/master/helm/superset/values.yaml
After this when I run
helm install \
superset \
--values=values.yaml \
--values=my-values.yaml \
superset/superset
This will way you can use your own existing Postgres. Now Superset can deploy successfully! Hope it helps future people!
Failed to deploy Superset to Kubernetes by Helm based on https://superset.apache.org/docs/installation/running-on-kubernetes
by running
The values.yaml file I am using is https://github.com/apache/superset/blob/master/helm/superset/values.yaml
Got error
Full log for `superset-init-db--1-xxx` (click to expand)
```shell Requirement already satisfied: psycopg2-binary==2.9.1 in /usr/local/lib/python3.8/site-packages (2.9.1) Requirement already satisfied: redis==3.5.3 in /usr/local/lib/python3.8/site-packages (3.5.3) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.4; however, version 22.0.4 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. Upgrading DB schema... logging was configured successfully 2022-04-16 03:29:27,934:INFO:superset.utils.logging_configurator:logging was configured successfully 2022-04-16 03:29:27,940:INFO:root:Configured event logger of type