I had a jupyterhub (chart version 3.3.8), installed via argocd (just like helm), on Rancher Kubernetes Engine. I am trying to set an environment variable to singleuser kernel from k8s secrets.
I have tried setup one or both hub.extraEnv and singleuser.extraEnv with value like:
Later I found out that maybe I need to setup hub.config.Spawner.env_keep to a list if whitelist var, since not all var are passed to singleuser kernel. I have config one or both hub.config.Spawner.env_keep, hub.config.KubeSpawner.env_keep, but this time the kernel cannot spawn with following error log:
Entered start.sh with args: start-notebook.py
2024-08-13T02:24:39.348698662Z Running hooks in: /usr/local/bin/start-notebook.d as uid: 0 gid: 0
2024-08-13T02:24:39.348846340Z Done running hooks in: /usr/local/bin/start-notebook.d
Updated the jovyan user:
2024-08-13T02:24:39.367637966Z - username: jovyan -> vietvudanh
2024-08-13T02:24:39.367668402Z - home dir: /home/jovyan -> /home/vietvudanh
Update vietvudanh's UID:GID to 1100:100
Attempting to copy /home/jovyan to /home/vietvudanh...
2024-08-13T02:24:39.460988059Z Success!
2024-08-13T02:24:39.461035477Z Changing working directory to /home/vietvudanh/
2024-08-13T02:24:39.466162208Z Running hooks in: /usr/local/bin/before-notebook.d as uid: 0 gid: 0
Sourcing shell script: /usr/local/bin/before-notebook.d/10activate-conda-env.sh
2024-08-13T02:24:39.466915036Z /usr/local/bin/before-notebook.d/10activate-conda-env.sh: line 8: conda: command not found
2024-08-13T02:24:39.467207950Z Sourcing shell script: /usr/local/bin/before-notebook.d/10spark-config.sh
2024-08-13T02:24:39.467366537Z Done running hooks in: /usr/local/bin/before-notebook.d
Running as vietvudanh: start-notebook.py
2024-08-13T02:24:39.475307397Z /usr/bin/env: ‘python’: No such file or directory```
So anyone has experience with this error and help me with this?