-
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
Support running a workspace in kata containers #21105
Comments
We can support this via an attribute in the DevWorkspace Operator, or by adding the relevant field to the DevWorkspace CRD -- which is preferable here? It would be very straightforward to define e.g. |
I want to let the developers to choose if the workspace will run in a Kata container or not. In other words, on the same OpenShift cluster, a developer can:
So if the attribute your are thinking about is at the DevWorkspace CR level than 👍 |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
/remove-lifecycle stale |
This is now possible using devfile attributes as describe in the PR |
Is your enhancement related to a problem? Please describe
Kata containers allow running pod in dedicated VMs. That makes it possible to run a container as root without any security exposure (and run
apt-get/yum install
orbuildah
).To run a Che workspace in a kata container the workspace
Pod
should specifyruntimeClassName: kata
:But that's not currently possible.
Describe the solution you'd like
To implement we should:
spec.runtimeClassName
field in DevWorkspace CRD that, if set and if the user has the necessary privileges, will be propagated to all the workspace Pods.runtime-class-name
:https://<che-host>#<repository_url>?<runtimeClassName>
. If set the resulting DevWorkspace should include theruntimeClassName
Additional context
Here I have described how to setup an OpenShift cluster with kata containers and run buildah in it.
The text was updated successfully, but these errors were encountered: