-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow using existing different namespaces for different users #416
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
There's an open PR to add a multi-namespace spawner: #387 It includes a |
Thanks @manics. So we can override |
I've done another PR: #458 This lets you turn on |
You will also (if you are enabling use_user_namespaces) want to put something like this in your jupyterhub_config.py:
This just lets the hub connect URL work across multiple namespaces. |
@praveenkanamarlapudi This worked, but it threw exception on missing serviceaccount on that namespace. did you create a serviceaccount on all desired namespaces? P.S I saw in docs: which validates my assumption that I need to create a serviceaccount for each namespace. Is there a work around to it perhaps ? @minrk @athornton Thanks |
At my site, we do create per-namespace serviceaccounts. On my medium-term roadmap is to make a configurable way to specify K8s resources that ride along with each user pod. We use a pre-spawn hook and some additional yaml to create those resources right now. |
Proposed change
As of now, kubespawner uses one namespace for all user pods. It'll be great to allow using different namespaces based on the username. So users can do additional things in their namespaces (attaching existing PVCs in the namespaces ..etc)
Alternative options
NA
Who would use this feature?
Lot of enterprises will benefit from this feature as allocating different namespaces to different teams is a common practice in kubernetes and resources in existing namespaces can be effectively used.
Suggest a solution
It will be great if we can given an option to change the namespace based on the username in the pre_spawn_hook or any other equivalent.
Sample Code:
The text was updated successfully, but these errors were encountered: