OpenShift sandboxed containers, based on the Kata Containers open source project, provides an Open Container Initiative (OCI) compliant container runtime using lightweight virtual machines, running your workloads in their own isolated kernel and therefore contributing an additional layer of isolation back to OpenShift’s Defense-in-Depth strategy.
Isolated Developer Environments & Privileges Scoping
As a developer working on debugging an application using state-of-the-art tooling you might need elevated privileges such as CAP_ADMIN
or CAP_BPF
. With OpenShift sandboxed containers, any impact will be limited to a separate dedicated kernel.
Legacy Containerized Workload Isolation You are mid-way in converting a containerized monolith into cloud-native microservices. However, the monolith still runs on your cluster unpatched and unmaintained. OpenShift sandboxed containers helps isolate it in its own kernel to reduce risk.
Safe Multi-tenancy & Resource Sharing (CI/CD Jobs, CNFs, ..) If you are providing a service to multiple tenants, it could mean that the service workloads are sharing the same resources (e.g., worker node). By deploying in a dedicated kernel, the impact of these workloads have on one another is greatly reduced.
Additional Isolation with Native Kubernetes User Experience OpenShift sandboxed containers is used as a compliant OCI runtime. Therefore, many operational patterns used with normal containers are still preserved including but not limited to image scanning, GitOps, Imagestreams, and so on.
Please refer to this blog for a detailed overview of sandboxed containers use cases and other related details.
The operator manages the lifecycle (install/configure/update
) of sandboxed containers runtime (Kata containers
) on OpenShift clusters.
The following diagram shows how the operator components are connected to the OpenShift overall architecture:
Here is a brief summary of the components:
CRI-O
uses either the default container runtime runc
or, in sandboxed containers case, the Kata
containers runtime.The operator owns and control the KataConfig
Custom Resource Definition (CRD).
Please refer to the code to find details of the KataConfig
CRD.
Please refer to the OpenShift release specific documentation for getting started with sandboxed containers.
Further note that starting with OpenShift 4.9, the branch naming is tied to the operator version and not the OpenShift version.
For example release-1.1
corresponds to the Operator release verson 1.1.x
.
Please take a look at the following doc. Contributions are most welcome!!
You can find various demos in the following youtube channel.