-
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
A workpace-related k8s resources(pods, services, ...) are not removed after inactivity timeout #15312
Comments
@lautou can you please provide more information about Openshift you are using and the way how did you install and setup Che? |
@skabashnyuk |
|
There is an assumption that you are using OAuth. Activity checker at this case uses |
@skabashnyuk checluster.yaml.txt |
Can you try to set |
Setting sev/P1 because not being able to idle workspaces when OAuth is activated has a critical impact. |
@skabashnyuk Find as attachment the RoleBinding YAML. rolebinding-che-edit.yaml.txt |
@l0rd |
@skabashnyuk I have set CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT=-1 in che deployment resource. Unfortunately it doesn't seem to work. My workspace has been stopped after 30 minutes. See logs + eclipse che pod YAML (containing CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT) |
By the way, i have restarted che cluster deployment while workspace pods were still running. Maybe CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT should have not taken into account. Let me test while restarting the workspace. |
Ok settings CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT=-1 works. My workspace is still up and running. |
@lautou you can add to cluster CR
|
Disable idling is not an option. I don't know if we need more permissions or we need to use another context (user token vs workspaces service account) or we should renew an expired token or something else but we need to find a solution to make idling work. |
Can you explain what do you mean by that in case that "Activity checker" has no user context?
The difficulty here is that we don't have a token at all, because we don't have a user. The only working solution at this moment what I know is to identify correct permission, make sure it was requested by the che's installation method (chectl, che-operator, helm), add an adjustment to configuration. |
I confim this setting works |
I disagree the ticket closing. |
@lautou totally agree with you. I believe there should be another the same issue registered, but let's keep this one opened until it's not linked |
I confirm on 7.6.0 there is no default timeout anymore. My workspaces are kept running. |
Duplicate #15906 |
Describe the bug
Che version
Steps to reproduce
Expected behavior
Workspace pods should be terminated
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
Environment
Additional context
The text was updated successfully, but these errors were encountered: