-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chectl: che.infra.kubernetes.namespace usage & how to create different namespace for each user #15440
Comments
@sleshchenko @ibuziuk , @LKrejci, please help. Added more info. |
@svkr2k editing
|
I've reproduced it locally. The value set in configmap is
If I run helm command directly, it is correct. My bet is on chectl. |
this would be the issue https://github.com/che-incubator/chectl/blob/master/src/tasks/installers/helm.ts#L326 |
@svkr2k yes, you can either
The doc what vars to set is here https://github.com/eclipse/che-docs/blob/master/src/main/pages/che-7/installation-guide/proc_configuring-namespace-strategies.adoc. You want One namespace per user strategy. And please be aware that Let me know if you need further help with setting this. |
@svkr2k looks like you're missing one |
Thank you @sparkoo, @tolusha . Here are the latest settings: In
In
In
Install che:
In browser, after I login, i try to create my first workspace. The following is the log with errors shown:
Here is devfile:
|
Additional details (may not be helpful):
|
Hi @tolusha , it would be very helpful if this issue can be added to sprint/current-sprint. I'm eagerly waiting for a solution for this. It would be nice if i can get some additional support on this. |
@svkr2k I'm a bit lost here. We've identified an issue with chectl. Then you had issue with waiting for PVC and now issue with starting workspace ( Btw I'm getting 404 for the second plugin in your devfile in #15440 (comment) |
Sorry, @sparkoo , thank you for the heads up ! i had the other questions while trying to figure out a solution for the my goal, that is, "create one workspace per user". I have removed unncessary comments (and shall move them to a separate issue if required). Thank you for identifying the issue with chectl. |
@svkr2k don't get me wrong. It's great that you've identified the problems and thank you for that. We just need to keep scope of one github issue clear, so it can be properly triaged and planned. If we find new issue during discussion, we should create new one so it can be again properly triaged. To limit number of workspaces per user, there is |
fixed by che-incubator/chectl#482 |
7.5.1
. I set the value ofche.infra.kubernetes.namespace.allow_user_defined=true
in the fileassembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/che/che.properties
.che.infra.kubernetes.namespace.default=<username>-che
chectl server:start --platform=k8s --installer=helm --domain=mydomain.com --multiuser --tls --templates=./deploy --cheimage=<link-to-registry-image>/che-server:latest
Then i created a workspace, I could see that the newly created workspace still gets listed under 'che' namespace ?
When i create a second workspace, the following error appears:
I tested the same for
NodeJS 10
devfile also, this time the error message shown when 2nd workspace created was related to volume mounting error.The text was updated successfully, but these errors were encountered: