如果只是小组内使用 不想共用密码 也不想搞复杂认证方案 那么就直接通过map(用户名,密码md5值)来制定密码
config.yaml部分内容
hub:config:JupyterHub:shutdown_on_logout: true # 用户logout 自动stop jupyter pod,家目录下所有文件会被保存到pvc 即启动后之前家目录下文件都在. 配置对应 c.JupyterHub.shutdown_on_logoutServerApp:shutdown_no_activity_timeout: 60 # 单位s 超过该时间没活动 jupyter pod会被关闭extraConfig:# 添加自定义的 Python 配置custom_config.py: |from jupyterhub.auth import Authenticatordef md5(password):import hashlib# 定义字符串string = password# 创建 md5 对象md5_hash = hashlib.md5()# 更新 md5 对象md5_hash.update(string.encode('utf-8'))# 获取 MD5 值md5_value = md5_hash.hexdigest()retu