whatisgithub

What is openshell-k8s-operator?

lensapp/openshell-k8s-operator — explained in plain English

Analysis updated 2026-07-26

6RustAudience · ops devopsComplexity · 4/5Setup · hard

In one sentence

A tool for Kubernetes that lets you create and manage isolated computing environments (sandboxes) using simple configuration files instead of manual commands.

Mindmap

mindmap
  root((repo))
    What it does
      Manages isolated sandboxes
      Uses standard config files
      Reports status to Kubernetes
    Resources
      Sandboxes with full lifecycle
      Providers for credentials
      Policies for constraints
      Workspaces for boundaries
    Setup
      Requires Agent Sandbox prereq
      Single Helm install
      Dev defaults included
    Production features
      High availability support
      Bring your own gateway
      Custom identity providers
    Use cases
      Running code sandboxes
      Multi-tenant workspaces
      GPU compute tasks

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Create and manage isolated coding environments directly within a Kubernetes cluster.

USE CASE 2

Set up multi-tenant workspaces with specific policies and credential providers.

USE CASE 3

Run compute-intensive or GPU tasks in isolated sandboxes using simple configuration files.

USE CASE 4

Deploy a highly available sandbox management system that survives node failures.

What is it built with?

RustKubernetesHelm

How does it compare?

lensapp/openshell-k8s-operatorcanack/huesmithcodeitlikemiley/service_template
Stars666
LanguageRustRustRust
Last pushed2024-06-12
MaintenanceDormant
Setup difficultyhardhardmoderate
Complexity4/54/52/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires the Kubernetes SIG Agent Sandbox project as a prerequisite before installing the operator via Helm.

The license is not specified in the provided explanation.

So what is it?

OpenShell Kubernetes Operator is a tool that lets teams manage OpenShell sandboxes using standard Kubernetes configuration files. OpenShell sandboxes are isolated computing environments, and this operator lets you create and control them by writing declarative YAML definitions instead of sending commands directly to a separate gateway service. The operator acts as a bridge between Kubernetes and the OpenShell gateway's API. You describe what you want in configuration files, and the operator translates those instructions into gateway calls. It also reports the current state of each resource back into Kubernetes, so you can check status with familiar commands. The project is in early development and currently implements five resource types: sandboxes with full lifecycle management, providers for handling credentials, policies for setting constraints, workspaces for defining tenancy boundaries, and provider profiles for defining provider types. Installation requires the Agent Sandbox project from the Kubernetes SIG community as a prerequisite. This provides the underlying infrastructure the gateway needs to create sandbox pods. Once that is in place, a single Helm command installs the complete stack: the gateway, an identity issuer, and the operator, all wired together. The default bundled setup is intended for development and demos, using self-signed TLS and temporary storage. For production use, you can bring your own gateway and configure external identity providers or custom authentication secrets. The operator supports high availability through leader election. You can run multiple replicas, and only one actively manages resources at a time while the others stand by. If the active instance fails, another takes over cleanly. Health and readiness checks are configured so that standby instances report as ready without blocking deployments. A typical setup involves defining a credential Secret, a provider that references it, a policy that constrains the sandbox, and finally a sandbox resource that ties everything together. You can specify the container image, environment variables, compute resources, GPU settings, storage volumes, and labels. The operator provisions declared volumes and can retain them across sandbox recreations. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Write a Kubernetes YAML configuration to create an OpenShell sandbox that uses a specific container image, requests 1 GPU, and sets two environment variables.
Prompt 2
Create the necessary OpenShell YAML definitions for a provider that references an existing Kubernetes secret for credentials, along with a policy that limits sandbox compute resources.
Prompt 3
Explain the step-by-step process to install the OpenShell Kubernetes Operator using Helm, assuming the Agent Sandbox prerequisite is already installed.
Prompt 4
Write a Helm values configuration to deploy the OpenShell operator in high-availability mode with 3 replicas and external identity provider settings.

Frequently asked questions

What is openshell-k8s-operator?

A tool for Kubernetes that lets you create and manage isolated computing environments (sandboxes) using simple configuration files instead of manual commands.

What language is openshell-k8s-operator written in?

Mainly Rust. The stack also includes Rust, Kubernetes, Helm.

What license does openshell-k8s-operator use?

The license is not specified in the provided explanation.

How hard is openshell-k8s-operator to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is openshell-k8s-operator for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.