enterprise_gateway icon indicating copy to clipboard operation
enterprise_gateway copied to clipboard

Questions about how to mount user pvc to kernel pods.

Open uniocto opened this issue 4 years ago • 1 comments

Hi!

I use enterpise_gateway and JupyterHub in k8s and I use JupyterHub as an auth and frontend service. I wish to mount users' PVC which was created by JupyterHub to enterprise gateway kernel pods. Which files(like k8s manifest, kernelspecs, or kernel-launchers) should I change to achieve what I want? Best regards!

Environment

  • Enterprise Gateway Version: 3.0.0.dev0
  • Platform: Kubernetes
  • JupyterHub Chart version 1.1.3

uniocto avatar Oct 27 '21 12:10 uniocto

You probably want to make edits to the kernel-pod template file located in each of the kernelspec scripts directories. You can "convey" user-specific details (directory name, etc.) via KERNEL_-prefixed environment variables, then reference those variables via {kernel_xxx} values in the template. You might checkout this portion of the docs as well: https://jupyter-enterprise-gateway.readthedocs.io/en/latest/kernel-kubernetes.html#unconditional-volume-mounts

kevin-bates avatar Jan 03 '22 18:01 kevin-bates