-
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
Make every workspace containers and init containers configurable #22036
Comments
The gateway changes should be Team A (as that's configured by Che operator), the projectClone changes should be Team B (as that's configured by DW operator). |
@mkuznyetsov working on this issue, gateway side, may be a good task for DevTools Week (cc @ibuziuk @tolusha) |
What is the reason behind this? It is recommended to set some limits into a container. |
PLEASE don't make this another change in CheCluster we have to then remove like in https://issues.redhat.com/browse/CRW-4077 Let's keep those out of the CR so that updates between versions don't keep breaking as we add/remove/change defaults in the CheCluster. |
We want to keep the default as it is today. But we want to allow admins to specify that the workspace containers will have no limits/requests. This is considered a good practice in some cases. |
I suggest doing this in the following way:
|
gatewayContainer related PR is merged, associated Docs PR will be merged by the docs team |
To close this issue we are waiting for devfile/devworkspace-operator#1080 that should be addressed in DWO 0.21.0. After that we need a correspondent issue/PR on che-operator side. |
@tolusha Setting CPU Limits is not always a good practice. We crashed into the the default CPU limit of We also discovered that if a devfile component has a request of IMO, we should allow for the Che admins to turn off the auto-injection of a CPU Limit. Here's a really well written explaination for not setting CPU limits: https://home.robusta.dev/blog/stop-using-cpu-limits |
Is your enhancement related to a problem? Please describe
The spec of these workspace pod containers is not configurable:
This can be annoying if we want to remove the CPULimit of these containers for example.
Describe the solution you'd like
Add the fields
gatewayContainer
andprojectCloneContainer
under CheClusterdevEnvironments
:The container API is already defined in the CheCluster API.
Setting a container field empty should result in the property not being set. For example, to unset the gateway CPU limit (and keep the other container properties):
Additional context
The text was updated successfully, but these errors were encountered: