You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "wqbbs911 (via GitHub)" <gi...@apache.org> on 2025/05/12 06:54:39 UTC

Re: [PR] feat: Allow superset to be deployed under a prefixed URL [superset]

wqbbs911 commented on PR #30134:
URL: https://github.com/apache/superset/pull/30134#issuecomment-2871099481

   > 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
   > ```
   
   seems it doesn't work in 5.0.0rc2


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org