wqbbs911 commented on issue #26319: URL: https://github.com/apache/superset/issues/26319#issuecomment-2826703035
> For those who want to try deploying superset to k8s using the Helm chart before its official release, the following modifications are required: > > 1. custom image tag, I found it from github ci https://github.com/apache/superset/actions/runs/14366622555/job/40281019265 , use the py311 version, since wsgiref.types does not exist on Python 3.10, there is a pr to fix https://github.com/apache/superset/pull/33072/files#diff-9689cb75a0ebe47604d59e0a54c904040cd60b45a283a87d0f8d77cac60751d8L21 > > ``` > image: > repository: apachesuperset.docker.scarf.sh/apache/superset > tag: 09b92e7-py311 > pullPolicy: IfNotPresent > ``` > > 2. install the required dependencies. refer to [ModuleNotFoundError: No module named 'psycopg2' during k8 installation #31431](https://github.com/apache/superset/discussions/31431), but need to use `uv` instead of `pip` > > ``` > bootstrapScript: | > #!/bin/bash > > # Install system-level dependencies > apt-get update && apt-get install -y \ > python3-dev \ > default-libmysqlclient-dev \ > build-essential \ > pkg-config > > # Install required Python packages > uv pip install --native-tls \ > authlib \ > psycopg2-binary \ > mysqlclient > > # Create bootstrap file if it doesn't exist > if [ ! -f ~/bootstrap ]; then > echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap > fi > ``` > > 3. Add `SUPERSET_APP_ROOT` env variables, and update health check paths > > ``` > supersetNode: > env: > SUPERSET_APP_ROOT: /your-path > livenessProbe: > httpGet: > path: /your-path/health > readinessProbe: > httpGet: > path: /your-path/health > startupProbe: > httpGet: > path: /your-path/health > ``` i tyied to use this configuration to deploy superset under the prefix /analytics, but it report error when installed by helm: ``` 10.11.1.129 - - [24/Apr/2025:07:53:00 +0000] "GET /analytics/health HTTP/1.1" 404 0 "-" "kube-probe/1.26+" 2025-04-24 07:53:05,427:WARNING:superset.views.error_handling:HTTPException Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1458, in dispatch_request self.raise_routing_exception(req) File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1440, in raise_routing_exception raise request.routing_exception # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/ctx.py", line 353, in match_request result = self.url_adapter.match(return_rule=True) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/werkzeug/routing/map.py", line 629, in match raise NotFound() from None werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
