brickie
by Hatchet
Hatchet sandbox provider. Runs agent sandboxes as Hatchet tasks on Kubernetes, one isolated pod per sandbox, with agent-sandbox and Kata Containers bundled.
About this chart
brickie
A Helm chart that deploys brickie, the Hatchet sandbox provider, on Kubernetes. The provider connects to a Hatchet tenant as a gRPC operator and runs agent sandboxes as Hatchet tasks, one isolated pod per sandbox.
⚠️ Preview. brickie and this chart are in preview. Values, defaults and resource names may change between releases without a deprecation cycle. More information is coming soon.
Prerequisites
- Kubernetes 1.30+
- Helm 3.8+
- A Hatchet tenant on Hatchet Cloud or a self-hosted Hatchet v0.110+ with
SERVER_GRPC_OPERATORS_ENABLED=true, and a client token for it - For Kata Containers (the default runtime), x86 nodes with
/dev/kvm - An object store the provider can read and write (S3, GCS, Azure Blob, or an S3-compatible endpoint) for anything beyond development
Installing the chart
helm repo add hatchet https://hatchet-dev.github.io/hatchet-charts
helm repo update
helm install brickie hatchet/brickie \
--set hatchet.token=$HATCHET_CLIENT_TOKEN \
--set store='s3://my-bucket?prefix=brickie/'
Uninstalling the chart
helm uninstall brickie
Dependencies
| Component | Subchart | Condition |
|---|---|---|
| agent-sandbox controller | agent-sandbox v1.0.8, bundled; upstream publishes no chart | agent-sandbox.enabled |
| Kata Containers | kata-deploy 4.2.0 from oci://quay.io/kata-containers/kata-deploy-charts | kata-deploy.enabled |
Both sections accept all values of their respective subcharts. Set a condition to false when the component is already on the cluster.
Values validation
This chart ships a values.schema.json. Helm validates your supplied values against it on install, upgrade, template and lint. Unknown keys are rejected.
Parameters
Hatchet
| Key | Type | Default | Description |
|---|---|---|---|
hatchet.token | string | "" | Hatchet client token. Stored by the chart in a Secret. One of hatchet.token or hatchet.existingSecret is required. |
hatchet.existingSecret | string | "" | Name of an existing Secret with the key HATCHET_CLIENT_TOKEN. |
Provider
| Key | Type | Default | Description |
|---|---|---|---|
image.repository | string | "ghcr.io/hatchet-dev/brickie" | Provider image repository. The same image runs in every sandbox pod as the TLS proxy in front of the sandbox daemon. |
image.tag | string | chart appVersion | Provider image tag. |
image.pullPolicy | string | "IfNotPresent" | Provider image pull policy. |
imagePullSecrets | list | [] | Pull secrets for the provider image. |
replicaCount | int | 1 | Provider replicas. Keep at 1: calls on one sandbox are serialized inside the provider. |
slots | int | 10 | Sandbox calls the provider runs at the same time. |
serviceAccount.annotations | object | {} | Annotations on the provider ServiceAccount, for example an IRSA role ARN for the object store. |
resources | object | {} | Provider pod resources. |
nodeSelector | object | {} | Provider pod node selector. |
tolerations | list | [] | Provider pod tolerations. |
extraEnv | list | [] | Extra environment variables for the provider container, for example AWS_USE_FIPS_ENDPOINT. Never reaches sandbox pods. |
extraEnvFrom | list | [] | Extra envFrom sources for the provider container, such as secretRef or configMapRef. |
Store
| Key | Type | Default | Description |
|---|---|---|---|
store | string | "" | Bucket for snapshots, sandbox metadata, and files larger than sandbox.maxFileBytes: s3://bucket?prefix=p/®ion=r, gs://bucket?prefix=p/, azblob://container?prefix=p/, or s3://bucket?prefix=p/&endpoint=https://host&use_path_style=true. Empty keeps everything on the pod's emptyDir; development only. |
storeSecret | string | "" | Name of a Secret with the store credentials (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, or the GCP and Azure equivalents), when not using workload identity. |
Sandboxes
| Key | Type | Default | Description |
|---|---|---|---|
sandbox.namespace | string | release namespace | Namespace for sandbox pods and claims. |
sandbox.image | string | "alpine:3" | Default sandbox image. Needs sh and tar. |
sandbox.runtime | string | "kata" | Runtime class for sandbox pods: kata (kata-clh), gvisor, nitro (EKS isolated-sandbox, set kata-deploy.enabled: false), auto (kata, gvisor, nitro, then the default runtime), none, or any RuntimeClass name. |
sandbox.warmReplicas | int | 2 | Ready pods each warm pool keeps. |
sandbox.idleTTL | string | "30m" | Remove a sandbox after this long without a call. |
sandbox.maxIdleTTL | string | "24h" | Largest idle timeout a sandbox may ask for at create. |
sandbox.maxFileBytes | int | 2097152 | Largest file carried inside a Hatchet task; larger files go through store. |
sandbox.egress | string | "internet" | What sandboxes may reach: internet (public addresses and cluster DNS) or none. Enforced by the sandbox NetworkPolicy where the CNI supports it. |
sandbox.nodeSelector | object | {} | Node labels sandbox pods are placed on, in addition to the runtime class's own selector. |
sandbox.tolerations | list | [] | Tolerations on sandbox pods, for tainted sandbox nodes. Give the Kata installer the same ones through kata-deploy.tolerations. |
sandbox.initContainers | list | [] | Kubernetes container specs run as init containers in every sandbox pod, in order, before the sandbox starts, under its runtime class. For checks such as a FIPS verification script. |
sandbox.resources.cpu | string | "1" | CPU limit per sandbox pod. |
sandbox.resources.memory | string | "2Gi" | Memory limit per sandbox pod. |
sandbox.resources.disk | string | "10Gi" | Ephemeral-storage limit per sandbox pod, also the workspace volume size limit. |
Network policy
| Key | Type | Default | Description |
|---|---|---|---|
networkPolicy.egressCIDRs | list | [] | CIDRs sandboxes may reach in addition to sandbox.egress. Rendered as a second NetworkPolicy when set. |
networkPolicy.allowDNS | bool | true | Include cluster DNS in that policy. |
Runtimes
| Key | Type | Default | Description |
|---|---|---|---|
kata-deploy.enabled | bool | true | Install Kata Containers with the bundled kata-deploy chart (Cloud Hypervisor shim, DaemonSet mode). |
kata-deploy.nodeSelector | object | unset | Limit the Kata installer to selected nodes. |
kata-deploy.shims.clh.dropIn | string | kernel_params with fips=1 | Kata config drop-in for the kata-clh shim. The default boots every sandbox guest kernel in FIPS mode; set "" to turn it off. |
gvisor.install | bool | false | Install gVisor with a DaemonSet and create the gvisor RuntimeClass. |
gvisor.release | string | "20261005.0" | gVisor release to install. |
gvisor.nodeSelector | object | {} | Limit the gVisor installer and RuntimeClass to selected nodes. |
agent-sandbox.enabled | bool | true | Install the agent-sandbox controller with the bundled chart. |
agent-sandbox.image.repository | string | ghcr.io/hatchet-dev/agent-sandbox-controller | Controller image, a FIPS 140-3 build of the upstream release. |
agent-sandbox.image.tag | string | "v1.0.8" | Controller version. Must match the sandboxd tag built into brickie. |
License
MIT. See LICENSE.
Deploy brickie with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has brickie on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbrickie is pinned at v0.1.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply